Hurry Up, Ends March 14!
Open Closed

how to reach applicaiton manager on other console application project such as DbMigrator layer #2081


User avatar
0
ElifKaya created

Hi,

I added console application project (NMM.Design) to create ModelSnapshot.cs on runtime instead of using add-migration Package Manager Console Commands. Because we have to check some manager rules for our business logic before we create ModelSnapshot.cs.

So, I create ModelSnapshot.cs on runtime. I have no problem about dependency injection but I cannot reach applicaiton manager data using manager service on Design layer. I tried same senario on DbMigrator layer and also I cannot reach it on there. But I can reach same applicaiton manager on Domain Layer. Actauly, Domain layer has beed added as project references indirectly on Design or DbMigrator layer. And also I think that I added necessary modeule as dependOn in DesignModule.cs.

Do you have any advice to reach applicaiton manager on other console application project such as DbMigrator layer?

Thank you in advice

design.PNG

domain.PNG

image.png

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/
Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index
The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

ABP Framework version: v4.4.3
UI type: MVC
DB provider: EF Core
Tiered (MVC) or Identity Server Separated (Angular): yes / no
Exception message and stack trace:
Steps to reproduce the issue:"


4 Answer(s)
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08