T
Tom B
Hello all,
I just read Karl Seguin's article "On the Way to Mastering ASP.Net:
Introducing Custom Entity Classes"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/CustEntCls.asp
I realize it's about ASP.Net, but figured the same principles apply for
Windows Form classes..
Here's my question/problem
In the article he refers to a Person class and a Role class. Since a person
could have several roles, an array of Roles is in the Person class.
SO.... what about the fact that Roles would contain many Persons. If I load
a Person class with all of its roles (in the constructor) and load all of
the persons within the roles constructor it will go on forever.
How is this handled? Is this where the lazy load stuff I've heard of comes
from?
Thanks in advance.
Tom B
I just read Karl Seguin's article "On the Way to Mastering ASP.Net:
Introducing Custom Entity Classes"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/CustEntCls.asp
I realize it's about ASP.Net, but figured the same principles apply for
Windows Form classes..
Here's my question/problem
In the article he refers to a Person class and a Role class. Since a person
could have several roles, an array of Roles is in the Person class.
SO.... what about the fact that Roles would contain many Persons. If I load
a Person class with all of its roles (in the constructor) and load all of
the persons within the roles constructor it will go on forever.
How is this handled? Is this where the lazy load stuff I've heard of comes
from?
Thanks in advance.
Tom B