Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

New Post: Issue 1043-Efficient API to ask if there are pending changes on a DbContext

$
0
0
I read the description of this issue and specially the things to be decided:

Location: we could put this on either ChangeTracker or on DbContext directly.

Naming: Pick one between HasChanges, IsDirty and changing the signature of DetectChanges to return a result.

Return value: bool or int containing number of pending changes (analogous to SaveChanges result).

I'm interested to create a new contribution for this issue, some things I'm thinking:
  • Location: ChangeTracker, is more natural because the DetectChanges is alredy here.
  • Name: HasChanges
  • Return value: return the number of changes instead of bool is a good idea
Best Regards
Unai

Viewing all articles
Browse latest Browse all 10318

Trending Articles