Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/184 set multitenant onmodelcreating #191

Merged
merged 21 commits into from
Nov 8, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
misc cleanup
  • Loading branch information
AndrewTriesToCode committed Oct 27, 2019
commit 600ad20f56c033e32b5ac63f31f031645f13434a
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ protected MultiTenantDbContext(TenantInfo tenantInfo, DbContextOptions options)
this.TenantInfo = tenantInfo;
}


protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.SetupMultiTenant();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,43 +179,4 @@ public TestIdentityDbContext(TenantInfo tenantInfo, DbContextOptions options)
: base(tenantInfo, options)
{
}
}

// public class TestIdentityDbContext_TUser : MultiTenantIdentityDbContext<MultiTenantIdentityUser>
// {
// public TestIdentityDbContext_TUser(TenantInfo tenantInfo)
// : base(tenantInfo)
// {
// }

// public TestIdentityDbContext_TUser(TenantInfo tenantInfo, DbContextOptions options)
// : base(tenantInfo, options)
// {
// }
// }

// public class TestIdentityDbContext_TUser_TRole_String : MultiTenantIdentityDbContext<MultiTenantIdentityUser, MultiTenantIdentityRole, string>
// {
// public TestIdentityDbContext_TUser_TRole_String(TenantInfo tenantInfo)
// : base(tenantInfo)
// {
// }

// public TestIdentityDbContext_TUser_TRole_String(TenantInfo tenantInfo, DbContextOptions options)
// : base(tenantInfo, options)
// {
// }
// }

// public class TestIdentityDbContext_AllGenericParams : MultiTenantIdentityDbContext<MultiTenantIdentityUser, MultiTenantIdentityRole, string, MultiTenantIdentityUserClaim<string>, MultiTenantIdentityUserRole<string>, MultiTenantIdentityUserLogin<string>, MultiTenantIdentityRoleClaim<string>, MultiTenantIdentityUserToken<string>>
// {
// public TestIdentityDbContext_AllGenericParams(TenantInfo tenantInfo)
// : base(tenantInfo)
// {
// }

// public TestIdentityDbContext_AllGenericParams(TenantInfo tenantInfo, DbContextOptions options)
// : base(tenantInfo, options)
// {
// }
// }
}