Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: What does calling WithLambdaInjection() on DbContext options do? #26

Closed
mikastamm opened this issue Jul 13, 2021 · 2 comments
Labels

Comments

@mikastamm
Copy link

The following info from the readme is unclear to me:

New: with Version 5.1.0 the package NeinLinq.EntityFrameworkCore introduced an explicit DbContext extension for enabling Lambda injection globally:

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

Does this mean it is required to call WithLambdaInjection() on the DbContext?
Or does calling this mean I can use LamdaInjection on a IQueryable without calling q.ToInjectable() on it?

@mikastamm mikastamm changed the title Documentation: Documentation: What does calling WithLambdaInjection() on DbContext options do? Jul 13, 2021
@axelheer
Copy link
Owner

I can use LamdaInjection on a IQueryable without calling q.ToInjectable() on it

This.

@mikastamm
Copy link
Author

Thats great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants