My single application needs access to multiple Database, I reference the official document to practice it.
The second DbContext works find. However, when I added the third DbContext, the Autofac throw the error shows the repository class can no be resolved.
I can not fix it based on the current debug log. I take me a whole day long.
Could the official teams help me to debug it via Zoom or Teams?
Thanks a lot.
3 Answer(s)
-
0
hi
Please share some code or a simple project to reproduce your problem, Thanks.
liming.ma@volosoft.com
-
0
I figured it out by myself. I removed the created projects, and re-create them.
I doubt that caused by Visual Studio Community 2022 for Mac(m1), especially when I created some modules in a sub-solution folder,
some wired situations occurred, the references among projects became mass.
Finally, I created the modules in the 'src' folder and then dragged them to the empty sub-solution folder manually, everything works fine.
The Windows development experience is still better than Mac when I developed .net application.
-
0
hi
You can try to use the Rider. I have been using it for a long while. It's better than VS.