Skip to content

System.NotImplementedException: AlterTableOperation #123

@hoxcape

Description

@hoxcape

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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions