axelheer / nein-linq

NeinLinq provides helpful extensions for using LINQ providers such as Entity Framework that support only a minor subset of .NET functions, reusing functions, rewriting queries, even making them null-safe, and building dynamic queries using translatable predicates and selectors.
MIT License
521 stars 22 forks source link

Add EF extension for lambda injection #24

Closed axelheer closed 3 years ago

axelheer commented 3 years ago

This enables global Lambda injection for EF Core:

    services.AddDbContext<MyContext>(options =>
         options.UseSqlOrTheLike("...").WithLambdaInjection());

You're welcome.

codecov[bot] commented 3 years ago

Codecov Report

Merging #24 (07530e3) into devel (be8c81c) will decrease coverage by 0.40%. The diff coverage is 86.36%.

Impacted file tree graph

@@            Coverage Diff             @@
##            devel      #24      +/-   ##
==========================================
- Coverage   95.83%   95.43%   -0.41%     
==========================================
  Files          46       48       +2     
  Lines         985     1029      +44     
  Branches      221      230       +9     
==========================================
+ Hits          944      982      +38     
- Misses         21       24       +3     
- Partials       20       23       +3     
Impacted Files Coverage Δ
...ameworkCore/InjectableDbContextOptionsExtension.cs 82.85% <82.85%> (ø)
...ore/InjectableDbContextOptionsBuilderExtensions.cs 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update be8c81c...07530e3. Read the comment docs.