SimplCommerce icon indicating copy to clipboard operation
SimplCommerce copied to clipboard

Multiple database context with difference database

Open thanhdongha opened this issue 4 years ago • 1 comments

Hi. How to make multiple datacontext with difference database

thanhdongha avatar Dec 31 '20 07:12 thanhdongha

Hi @thanhdongha,

unfortunately your question is not specific enough. Maybe you want to elaborate your problem a little bit more?

Anyway I can tell you the following:

Currently we have in SimplCommerce only one single DbContext, which is SimplDbContext. Every DbContext can exactly connect to one database (at a time).

DbContexts can be added as needed for example for db persistence of IdentityServer4 tables. But then you need to implement this functionality and connect to a database accordingly.

I hope that helps.

Best regards,

Florian

fhebel avatar Jan 04 '21 13:01 fhebel