simplcommerce / SimplCommerce

A simple, cross platform, modulith ecommerce system built on .NET
http://www.simplcommerce.com
Apache License 2.0
4.2k stars 1.59k forks source link

Multiple database context with difference database #966

Open thanhdongha opened 3 years ago

thanhdongha commented 3 years ago

Hi. How to make multiple datacontext with difference database

fhebel commented 3 years ago

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