Comments (3)
Hey @jasonswearingen! 👋🏻
You could do something like .AssignableTo<DbContext>().As<DbContext>()
, but you'd still need to configure the options separately, so I would recommend just doing it the "normal" way 😄
from scrutor.
thank you, that's what I figured, as the AddDbContext
extension seems to do a lot of stuff internally.
But for literally everything else, Scrutor makes things so much more pleasant (I'm a hesatant DI noob.. but Scrutor makes it great)
from scrutor.
if someone else has this issue, you can override the DbContext.OnConfiguring() method and configure there.
from scrutor.
Related Issues (20)
- Not able to register ILogger with the decorater pattern HOT 2
- Deadlock while trying to solve wrongly decorated service. HOT 1
- Could not find any registered services for type HOT 4
- Scrutor stopped working after upgrading to .NET 8 preview 7 from .NET 8 preview 6 HOT 4
- Potential ReflectionTypeLoadException when scanning by assemblies HOT 2
- Register services with ImplementationFactory HOT 3
- Is this scan issue related to Scrutor or something else? HOT 1
- Getting types just found during Scan HOT 6
- Some types do not get decorated HOT 2
- Azure Function InProcess: Could not load file or assembly 'Microsoft.Extensions.DependencyModel
- [Question] Decoration of closed interface over generic parent HOT 2
- Scrutor stopped working after upgrading to .NET 8 HOT 1
- Is the Scrutor project dead? 😞 HOT 3
- .net 8 Keyed Registration support HOT 3
- Scrutor scanning libraries more than one level
- scrutor is missing NuGet package README file
- TryDecorate not working as expected. HOT 1
- .net 8 version of Scrutor
- Signing key shouldn't be public HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrutor.