Quantcast
Channel: entityframework Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1793

New Post: Multi-Tenant With Code First

$
0
0
zam6ak wrote:
Additional question: How to handle "__MigrationHistory" table?
Should each schema have its own migration history?
Hi zam6ak,

sorry for the late reply. In our implementation we have one __MigrationHistory per schema as you can see in my sample postet on 19.10.2013:
tenantDataMigrationsConfiguration.SetHistoryContextFactory("System.Data.SqlClient", (existingConnection, defaultSchema) => new HistoryContext(existingConnection, schemaName));
'schemaName' is the ID (a GUID) of the tenant in our case.

Regards from Germany,

Tobias

Viewing all articles
Browse latest Browse all 1793

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>