-
-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Description
I'm trying to use EntityFramework.DynamicFilters for soft delete, and all entities for soft delete are implemented from BaseEntity.
modelBuilder.Filter("SoftDelete", (BaseEntity e) => e.DeleteMark, false);
The code blow works good until I add the filter into OnModelCreating,It throws System.NotImplementedException: AlterTableOperation.
using (var db = new FrameworkDbContext()) { db.Database.Initialize(false); }
Why the filter will cause this exception,and how to solve it?
Metadata
Metadata
Assignees
Labels
No labels