Maybe need lazy AddPlugin #111
Answered
by
mythz
1257960069
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
mythz
Feb 29, 2024
Replies: 1 comment 3 replies
-
we must rename the autoquery.cs to ConfigureDbAutoQuery, this will ensure AutoQueryFeature.GenerateCrudServices.DbFactory can get IDbConnectionFactory from asp.net ioc. Modular Startup default order may be is by className.
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That wouldn't solve anything. The generated Services need to be generated before the IOC is built and dependencies can't be resolved before IOC is built so you can't use the IOC to resolve the IDbConnectionFactory dependency, i.e. it needs to be populated and resolved outside of the IOC.
We're not changing how plugins work, since it needs to remain backwards compatible and work when not using ASP .NET Core IOC.