Open Closed

I need multi DbContext for my single application, but Autofac throw the error. #6172


User avatar
0
Shanzhi_Chen created

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)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please share some code or a simple project to reproduce your problem, Thanks.

    liming.ma@volosoft.com

  • User Avatar
    0
    Shanzhi_Chen created

    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.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can try to use the Rider. I have been using it for a long while. It's better than VS.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11