Soft Deletes with Entity Framework Core 2

added by DotNetKicks
1/12/2018 1:47:24 PM

1 Kicks, 376 Views

Entity Framework Core 2, already covered here, includes a cool feature called global filters. By leveraging global filters, we can apply restrictions automatically to entities, either loaded directly or through a collection reference. If we add this to shadow properties (in the case of relational databases, columns that exist in a table but not on the POCO model), we can do pretty cool stuff.


0 comments