c# Programming Glossary: tenantcontext
Virtual Navigation Properties and Multi-Tenancy http://stackoverflow.com/questions/19826316/virtual-navigation-properties-and-multi-tenancy set I've recently implemented multi tenancy by creating a TenantContext that contains the following private readonly DbContext _dbContext.. _dbContext private readonly Tenant _tenant public TenantContext Tenant tenant base name DefaultConnection this._tenant tenant.. working great. Whenever any of my services creates a new TenantContext all queries directly off of that context are filtered through..
|