Contents tagged with Entity Framework
-
Read-Only Entities in EF Core
One feature that has been conspicuously missing from EF Core is read-only entities, meaning, the possibility to mark an entity type as read-only, in which case, no changes to its instances (inserts, updates, deletes) will be allowed; data needs to be added to the database by other means. There is currently an open ticket to track this functionality, which has been open for quite some time. While it is currently not possible to achieve exactly this functionality, there are some possible workarounds that require very little coding.
-
Soft Deletes with Entity Framework Core - Part 3
Update: SoftDeleteConvention is now generic.
-
Succinctly Series Readers Awards
-
Succinctly Books Index
This page lists all the books I wrote or reviewed for Syncfusion’s Succinctly series.
-
Entity Framework Core Succinctly Released
-
Entity Framework Core Pitfalls: No TransactionScope Support
Update: this is fixed in EF Core 2.1.
-
Soft Deletes with Entity Framework Core 2 – Part 2
Update: see part 3 here.
-
Soft Deletes with Entity Framework Core 2 - Part 1
Update: see part two here.
-
Interception in Entity Framework Core
Right now, Entity Framework Core still does not have all of the features provided by pre-Core versions, I even wrote a post about this. One of this features is the ability to intercept queries, something that was provided by the IDbCommandInterceptor, IDbCommandTreeInterceptor interfaces.
-
Entity Framework Core Extensions: Getting Primary Keys and Dirty Properties
Two simple hacks: finding the primary key values: