Timeline for Simple change tracker for POCOs
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 11, 2018 at 6:29 | vote | accept | JanDotNet | ||
Jan 27, 2018 at 20:11 | comment | added | t3chb0t | Who cares? :-] You could use ef-core just for change tracking. You don't need a database - in-memory provide would do too docs.microsoft.com/en-us/ef/core/providers/in-memory although I guess you don't need any provider. | |
Jan 27, 2018 at 20:11 | history | edited | JanDotNet | CC BY-SA 3.0 |
added 197 characters in body
|
Jan 27, 2018 at 20:08 | comment | added | JanDotNet | Yes, but unfortunately the entities are loaded from a REST service, not directly from a database. | |
Jan 27, 2018 at 20:02 | comment | added | t3chb0t | I'm wondering why don't you just use EF for that? It's pretty good in change tracking. | |
Jan 27, 2018 at 11:11 | answer | added | VisualMelon | timeline score: 3 | |
Jan 26, 2018 at 21:30 | comment | added | JanDotNet | I thought it is an appropriated usage for flagged enums. How would you design the "Query API"? | |
Jan 26, 2018 at 21:22 | comment | added | t3chb0t | Oh, I see, but this is a very dirty trick just of a little more convenience in a query. | |
Jan 26, 2018 at 21:21 | comment | added | JanDotNet | Further more, the enum is not used to associate the entity with a state - just to get entites for special states. | |
Jan 26, 2018 at 21:20 | comment | added | JanDotNet |
Becuase it allows to get e.g. all modified, new and deleted entites by combining the enum values: changeTracker.GetEntities(EntityStates.Modified | EntityStates.New | EntityStates.Deleted)
|
|
Jan 26, 2018 at 21:17 | comment | added | t3chb0t |
One more question, this time a technical one... why is EntityStates a Flags enum? It doesn't make much sense that an entity can have more then one state at the same time.
|
|
Jan 26, 2018 at 21:00 | comment | added | JanDotNet | no, it's the old one for static fields. The prefix for instance fields is still 'my' ;) | |
Jan 26, 2018 at 20:50 | comment | added | t3chb0t |
thePropertyInfos - a new prefix? ;-D
|
|
Jan 26, 2018 at 20:48 | history | asked | JanDotNet | CC BY-SA 3.0 |