using System.Data.Common; using System.Data.Entity; using System.Data.Entity.Core.Objects; using System.Data.Entity.Infrastructure; using Abp.MultiTenancy; using IwbZero.Authorization.Base.Users; using IwbZero.Authorization.Roles; using IwbZero.Authorization.Users; using IwbZero.MultiTenancy; namespace IwbZero.EntityFramework { [MultiTenancySide(MultiTenancySides.Host)] public abstract class IwbZeroHostDbContext : IwbZeroCommonDbContext where TTenant : IwbTenant where TRole : IwbSysRole where TUser : IwbSysUser { /// /// Tenants /// public virtual IDbSet Tenants { get; set; } ///// ///// Editions. ///// //public virtual IDbSet Editions { get; set; } ///// ///// FeatureSettings. ///// //public virtual IDbSet FeatureSettings { get; set; } ///// ///// TenantFeatureSetting. ///// //public virtual IDbSet TenantFeatureSettings { get; set; } ///// ///// EditionFeatureSettings. ///// //public virtual IDbSet EditionFeatureSettings { get; set; } ///// ///// Background jobs. ///// //public virtual IDbSet BackgroundJobs { get; set; } /// /// User accounts /// public virtual IDbSet UserAccounts { get; set; } protected IwbZeroHostDbContext() { } protected IwbZeroHostDbContext(string nameOrConnectionString) : base(nameOrConnectionString) { } protected IwbZeroHostDbContext(DbCompiledModel model) : base(model) { } protected IwbZeroHostDbContext(DbConnection existingConnection, bool contextOwnsConnection) : base(existingConnection, contextOwnsConnection) { } protected IwbZeroHostDbContext(string nameOrConnectionString, DbCompiledModel model) : base(nameOrConnectionString, model) { } protected IwbZeroHostDbContext(ObjectContext objectContext, bool dbContextOwnsObjectContext) : base(objectContext, dbContextOwnsObjectContext) { } protected IwbZeroHostDbContext(DbConnection existingConnection, DbCompiledModel model, bool contextOwnsConnection) : base(existingConnection, model, contextOwnsConnection) { } } }