Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Deep updates #283

Open
bstaley opened this issue Jan 6, 2017 · 2 comments
Open

Deep updates #283

bstaley opened this issue Jan 6, 2017 · 2 comments

Comments

@bstaley
Copy link

bstaley commented Jan 6, 2017

@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
Copy link
Author

bstaley commented Jan 19, 2017

Is this available or planned to have?

@bstaley
Copy link
Author

bstaley commented Jan 27, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant