hi,
I have a Person class
Person is a parent of an Address, the relation is one to many (parent has many Addresses)
like that (taken from the constructor of Person):
Addresses = new ChangeTrackingCollection
();
I need when I add Address to person like that:
addresses .Add(new Address())
the properties Person and PersonID in Address getting values according to the Person
how can I do this?
do I need to used with Parent field from ChangeTrackingCollection class? If so how?
Thanks in advance
hi,
();I have a Person class
Person is a parent of an Address, the relation is one to many (parent has many Addresses)
like that (taken from the constructor of Person):
Addresses = new ChangeTrackingCollection
I need when I add Address to person like that:
addresses .Add(new Address())
the properties Person and PersonID in Address getting values according to the Person
how can I do this?
do I need to used with Parent field from ChangeTrackingCollection class? If so how?
Thanks in advance