jaydata icon indicating copy to clipboard operation
jaydata copied to clipboard

Deep updates

Open bstaley opened this issue 8 years ago • 2 comments

@lazarv or @robesz

Can I get some guidance? I have this structure

class User {
    Id: int,
    Contact: Custom.Namespace.Contact
}

and I'm trying to do something like

context.Users.attachOrGet({Id:1}).Contact.FirstName = "Sam";
context.saveChanges();

Though I get an exception because Contact is undefined. Is it possible to do deep updates? If so can you give an example or point me to some documentation?

bstaley avatar Jan 06 '17 22:01 bstaley

Is this available or planned to have?

bstaley avatar Jan 19 '17 14:01 bstaley

Would enableDeepSave allow for deep updates to work out of the box?

bstaley avatar Jan 27 '17 20:01 bstaley