I built a EF Core extension that lets you improve your performance and only select what you want.
Filter props with any type you want (Contains, StartsWith, Equals, etc.)
You can exclude sensitive fields with attributes or fluent API, and if needed you can ignore them all by setting IgnoreGlobalExceptions = true when applying the policy.
Also you can see the full lambda expression and generated SQL the nuget creates so no black box.
Helper to see full global excludes, filters, order by fields, or props you have selected.
All you need to do is create the policy and define it in program and you're done.
You can have multiple policy names per your models and tables.
Also if you want to check the nuget you can check these links:
📦 NuGet: https://www.nuget.org/packages/Kepler.Core
🔗 GitHub: https://github.com/MohammadAliEbrahimzadeh/Kepler.Core
Also I have a demo with Adventure Works 2022 so if you don't want to check it with your own projects you can clone the project and check it there.
If you enjoyed and found it useful please star the repo and if you have any issues or suggestions I would be happy to hear it.
Thanks for reading!
Top comments (0)