public void WorkWithSingleParamCtor()
        {
            var tenant1 = new TenantInfo("abc", "abc", "abc",
                                         "DataSource=testdb.db", null);
            var c = new TestIdentityDbContext(tenant1);

            Assert.NotNull(c);
        }
        public void SetMultiTenantOnIdentityDbContextVariant_None(Type entityType, bool isMultiTenant)
        {
            var tenant1 = new TenantInfo("abc",
                                         "abc",
                                         "abc",
                                         "DataSource=testdb.db",
                                         null);
            var c = new TestIdentityDbContext(tenant1, _options);
            var multitenantEntities = c.Model.GetEntityTypes().Where(et => et.IsMultiTenant()).Select(et => et.ClrType).ToList();

            Assert.Equal(isMultiTenant, c.Model.FindEntityType(entityType).IsMultiTenant());
        }
Ejemplo n.º 3
0