Browse Source

Add setters for DbSet properties.

pull/1/head
enisn 5 years ago
parent
commit
9a174343bb
  1. 12
      services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/EntityFrameworkCore/AdministrationServiceDbContext.cs
  2. 4
      services/saas/src/EShopOnAbp.SaasService.EntityFrameworkCore/EntityFrameworkCore/SaasServiceDbContext.cs

12
services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/EntityFrameworkCore/AdministrationServiceDbContext.cs

@ -39,12 +39,12 @@ namespace EShopOnAbp.AdministrationService.EntityFrameworkCore
}
public DbSet<PermissionGrant> PermissionGrants { get; }
public DbSet<Setting> Settings { get; }
public DbSet<FeatureValue> FeatureValues { get; }
public DbSet<AuditLog> AuditLogs { get; }
public DbSet<DatabaseBlobContainer> BlobContainers { get; }
public DbSet<DatabaseBlob> Blobs { get; }
public DbSet<PermissionGrant> PermissionGrants { get; set; }
public DbSet<Setting> Settings { get; set; }
public DbSet<FeatureValue> FeatureValues { get; set; }
public DbSet<AuditLog> AuditLogs { get; set; }
public DbSet<DatabaseBlobContainer> BlobContainers { get; set; }
public DbSet<DatabaseBlob> Blobs { get; set; }
protected override void OnModelCreating(ModelBuilder builder)
{

4
services/saas/src/EShopOnAbp.SaasService.EntityFrameworkCore/EntityFrameworkCore/SaasServiceDbContext.cs

@ -9,8 +9,8 @@ namespace EShopOnAbp.SaasService.EntityFrameworkCore
[ConnectionStringName(SaasServiceDbProperties.ConnectionStringName)]
public class SaasServiceDbContext : AbpDbContext<SaasServiceDbContext>, ITenantManagementDbContext
{
public DbSet<Tenant> Tenants { get; }
public DbSet<TenantConnectionString> TenantConnectionStrings { get; }
public DbSet<Tenant> Tenants { get; set; }
public DbSet<TenantConnectionString> TenantConnectionStrings { get; set; }
public SaasServiceDbContext(DbContextOptions<SaasServiceDbContext> options)
: base(options)

Loading…
Cancel
Save