I have an existing ASP.Net Core Web API and now I want to create the admin module as a separate ASP.Net Core application but sharing the same database.
My problem now is how to handle my DBContext in the new solution especially because of the the following line containing the ApplicationUser model
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
and also the other model classes which exist in the existing solution from where I need to create my DBSet entitie sets to enable me query the database.
I wish to have the admin module to be a completely separate application hosted on a different domain/server but having access to the same database so that the admin can manage the database table entries from the admin solution.
I don't want it to be a separate project on the same solution. Rather I want it to be a completely separate solution/application which can be hosted independently.
I will appreciate any guide to achieving this if it is possible with ASP.Net Core.
I am using ASP.Net Core 5 with Entity Framework Core but I can migrate to version 6 if that offers a solution.
ApplicationDbContextandIdentityDbContext. But we can only give opinions and suggestions here.