Is there a possibility to create a table overlapping database context to avoid putting the database context in a library or creating different table prefixes/different databases for the same things?
To elaborate, this is an example of a CRM system.
Database
- Pages
- Categories
- BlogEntries
- Comments
- Products
- Profiles
- Licenses
- Activations
- Invoices
- Customers
DB Contexts
Activation Server Context uses
- Products
- Licenses
- Activations
- Customers
Customer Relationship Context uses
- Products
- Customers
- Invoices
Frontend Website Context uses
- Products
- Customers
- Invoices
- Profiles
- Pages
- Categories
- BlogEntries
- Comments
Solutions
The only ways I could think of doing this...
- Creating one library with one db context that addresses all tables (incl. migrations etc.) -> Separation of concern?
- Splitting up related tables into different contexts with prefixes/database split -> Related table entries are not "tied together" (and I have to use guids to avoid duplicates, also using multiple contexts in one project)