Entity Framework Pitfalls Index
Updated on January 16th
These are the posts on Entity Framework pitfalls I’ve written so far. This post will be updated whenever there are more.
Starting with #29 I will also be covering Entity Framework Core.
-
Validation Does Not Load Lazy Properties
-
Concrete Table Inheritance and Identity Keys
-
Cannot Return Complex Types From SQL Queries
-
Non Nullable Columns in Table Per Class Hierarchy Inheritance
-
Deleting Detached Entities With Required References
-
Null Navigation Properties
-
Deleting Orphans
-
Date/Time Operations
-
Batch Modifications
-
Registering Custom Database Functions for LINQ
-
Collections of Types Other Than ICollection<T> Are Ignored
-
String Length Validation
-
Non Public Entity Sets Setter
-
Mapping Discriminator Columns
-
Command Interceptors and Identity Keys
-
Table Valued Functions
-
Lazy Loading and Proxy Creation
-
Using Stored Procedures for Basic Operations
-
DbConfiguration Classes Are Automatically Loaded
-
Composite Primary Keys
-
TransactionScope
-
Cascade Deletes
-
Attaching New Entities With Existing Related Ones
-
Entity Refresh
-
Migrations and DbContext Construction
-
Queries Over Navigation Properties When There Are Foreign Key Properties Are Ignored
-
Null Semantics
-
Skip/Take Position Matters
- No TransactionScope Support (EF Core)