-
Notifications
You must be signed in to change notification settings - Fork 226
Generating multiple database contexts in a single go
Simon Hughes edited this page Jun 6, 2019
·
20 revisions
This is an Enterprise feature which is new in the not-yet-released v3.
This will read in the filter and setting requirements from a database table, and will have the ability to generate many db contexts, poco, etc all in a single go. The database is read just once, and many (can be 100's) database contexts are generated, with just the specific tables, columns and stored procs you want in each db context, each within its own namespace.
Firstly, you need to create the multi context settings tables. Run the following SQL script on SQL Server: MultiContextSettings.sql
You then need to insert