Skip to content

one to many relationship - PersonID and Person fields are not updated in Child #234

@orit1

Description

@orit1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions