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

Update modified fields only #80

Closed
t-denis opened this issue Mar 11, 2019 · 4 comments
Closed

Update modified fields only #80

t-denis opened this issue Mar 11, 2019 · 4 comments

Comments

@t-denis
Copy link

t-denis commented Mar 11, 2019

Hi, just found your awesome library. Thanks for great work.

Is it a bug or by design, that Breeze updates the entire db row, not just the modified fields?
Since it roundtrips original values, I suppose that the partial update scenario should be supported.
But it sets modified state for the entire EntityEntry, that leads to the entire row update,

Using ASP.Net Core 2.2 + EF Core 2.2.

@t-denis t-denis changed the title Update only modified fields Update modified fields only Mar 11, 2019
@ganySA
Copy link

ganySA commented Jul 2, 2019

@t-denis did you manage to get the .expand() functionality to work?

@t-denis
Copy link
Author

t-denis commented Jul 2, 2019

Not used expand() functionality.
My issue was related to marking whole entity as modified rather then marking specific properties as dirty (like RIA Services does, I believe).

MarkEntryAndOwnedChildren(entry, Microsoft.EntityFrameworkCore.EntityState.Modified);

@dean-shanghai
Copy link

@t-denis have you found the solution yet?

@t-denis
Copy link
Author

t-denis commented Aug 20, 2019

@dean-yang
The solution is well-known, mark properties as dirty instead of marking an entity, but I haven't created a PR.

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

No branches or pull requests

4 participants