entity framework - Multi-tenancy and connection pool using EF 6 -
we have developed multi-tenant application using ef 4.3 code first model, each tenant have own separate database. since, expecting bit high number of tenants, want maintain connection pool across tenants.
in order achieve in ef 4.3 code first model, have created 'appmaster' database , developed own provider using efproviderwrappertoolkit internally uses sql provider only. our customized provider first connects 'appmaster' database , change database respective tenant specific database. working fine expected.
but same provider not working ef6 since have moved provider specific code entityframework dll under 'system.data.entity.core.common' namespace.
any solution maintain connection pool across tenants pointing respective database same database server?
the provider model in ef6 has changed. first of need use ef6 provider. if using sql server ef6 sql server provider included in ef6 package. since wrapping provider provider should read , follow the document rebuilding provider ef6 , wrapping provider should continue work. note document contains section wrapping providers in ef6. in addition in ef6 introduced dependency injection , code-based configuration makes aspects of wrapping easier.
Comments
Post a Comment