Hi there
I've been trying to implement a Domain model with classes similar to
the similar to the example below:
public class Animal
{
//properties here
}
public class Cat : Animal
{
}
public class Zoo
{
public IList<Animal> Menagerie {get; protected set}
}
I'd like to be able to instantiate a Zoo object and then get all the
Cats out of the Menagerie collection, but have run into difficulty
that appears to stem from lazy loading of proxy objects.
As I understand it, using an interface as the proxy and specifying
that in my classes should facilitate this. I've been reading Fabio
Maulo's Knol article, but would greatly appreciate it if someone could
perhaps provide a code example of the best practice to do this as the
aforementioned article mentions that both Cat and Animal should use
distinct interfaces but does not specify if the 2 interfaces should be
related to one another.
Sorry for the basic question, but I though that this would be the best
place to ask given the lack of examples my searching has yielded so
far.
Thanks!
Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---