jaduff / LabLog

Software for recording physical users of computers in a lab environment.
MIT License
0 stars 1 forks source link

Tracking private properties in database #38

Closed jaduff closed 6 years ago

jaduff commented 6 years ago

I want to track _latestVersion from SchoolModel in the database. It should only be accessed from inside the object itself, but should persist. I found https://romiller.com/2012/10/01/mapping-to-private-properties-with-code-first/ which shows how to achieve this in EF6, but is broken in EF Core. Any suggestions on how to track a private property in EF Core?

simonjduff commented 6 years ago

Don't bother. You're the only developer, the code won't be shared. Tag it with [Obsolete] to generate a warning if you like.

jaduff commented 6 years ago

Ok done :)