How to add another dbcontext in the the application? The steps I followed:
I have added a new connectionstring in the config file with name='con2'.
Created dbcontext similar to existing one inheriting AbpDbContext and passed connection string name here in constructor public Con2Context() : base("con2") {
}
But Preinitialize() method calls only con1. Configuration.DefaultNameOrConnectionString = "con1";
where do I configure con2 connnection? Right now, it is ignoring con2 and using con1 only for Con2Context. Please help!