Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 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 bstaley commented Jan 19, 2017

Is this available or planned to have?

@bstaley
Copy link
Author

@bstaley bstaley commented Jan 27, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.