zzzprojects / EntityFramework-Classic

Entity Framework Classic is a supported version of the latest EF6 codebase. It supports .NET Framework and .NET Core and overcomes some EF limitations by adding tons of must-haves built-in features.
https://entityframework-classic.net
Other
103 stars 27 forks source link

Is it possible to use DynamicFilters together with EntityFramework-Classic? #15

Closed pilarodriguez closed 5 years ago

pilarodriguez commented 5 years ago

We are migrating our projects to .Net Standard. We were using EF 6 and EntityFramework.DynamicFilters.

For the migration, we replaced EF with the Z.EntityFramework.Classic (version 7.0.22) package. But we had to remove the EntityFramework.DynamicFilters package because it uses EF and we get errors using it together with Z.EntityFramework.Classic.

Is there any way to define filters in DbContext.OnModelCreating? Will the EntityFramework.DynamicFilters package be compatible with EntityFramework-Classic?

JonathanMagnan commented 5 years ago

Hello @pilarodriguez ,

Entity Framework Classic has his own filter implemented:

It's possible on your side to try it?

If you absolutely need EntityFramework.DynamicFilters, just let us know and we will release a new version compatible with EF Classic during the weekend.

Best Regards,

Jonathan

pilarodriguez commented 5 years ago

Great, that works. Thanks you very much for the quick answer.

JonathanMagnan commented 5 years ago

Hello @pilarodriguez ,

Did you have the chance to try it? Let me know if everything is working as expected.

pilarodriguez commented 5 years ago

Yes, it works as expected. Thanks