Browse Source
Merge pull request #1351 from Fisher-Joe/feature/modifyModulesConstants
Feature/modify modules constants
pull/1375/head
maliming
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
49 changed files with
58 additions and
39 deletions
-
docs/en/Getting-Started-AspNetCore-MVC-Template.md
-
modules/audit-logging/src/Volo.Abp.AuditLogging.Domain/Volo/Abp/AuditLogging/AbpAuditLoggingConsts.cs
-
modules/audit-logging/src/Volo.Abp.AuditLogging.EntityFrameworkCore/Volo/Abp/AuditLogging/EntityFrameworkCore/AbpAuditLoggingDbContext.cs
-
modules/audit-logging/src/Volo.Abp.AuditLogging.EntityFrameworkCore/Volo/Abp/AuditLogging/EntityFrameworkCore/IAuditLoggingDbContext.cs
-
modules/audit-logging/src/Volo.Abp.AuditLogging.MongoDB/Volo/Abp/AuditLogging/MongoDB/AuditLoggingMongoDbContext.cs
-
modules/audit-logging/src/Volo.Abp.AuditLogging.MongoDB/Volo/Abp/AuditLogging/MongoDB/IAuditLoggingMongoDbContext.cs
-
modules/background-jobs/src/Volo.Abp.BackgroundJobs.Domain/Volo/Abp/BackgroundJobs/BackgroundJobsConsts.cs
-
modules/background-jobs/src/Volo.Abp.BackgroundJobs.EntityFrameworkCore/Volo/Abp/BackgroundJobs/EntityFrameworkCore/BackgroundJobsDbContext.cs
-
modules/background-jobs/src/Volo.Abp.BackgroundJobs.EntityFrameworkCore/Volo/Abp/BackgroundJobs/EntityFrameworkCore/IBackgroundJobsDbContext.cs
-
modules/background-jobs/src/Volo.Abp.BackgroundJobs.MongoDB/Volo/Abp/BackgroundJobs/MongoDB/BackgroundJobsMongoDbContext.cs
-
modules/background-jobs/src/Volo.Abp.BackgroundJobs.MongoDB/Volo/Abp/BackgroundJobs/MongoDB/IBackgroundJobsMongoDbContext.cs
-
modules/blogging/src/Volo.Blogging.Domain/Volo/Blogging/BloggingConsts.cs
-
modules/blogging/src/Volo.Blogging.EntityFrameworkCore/Volo/Blogging/EntityFrameworkCore/BloggingDbContext.cs
-
modules/blogging/src/Volo.Blogging.EntityFrameworkCore/Volo/Blogging/EntityFrameworkCore/IBloggingDbContext.cs
-
modules/blogging/src/Volo.Blogging.MongoDB/Volo/Blogging/MongoDB/BloggingMongoDbContext.cs
-
modules/blogging/src/Volo.Blogging.MongoDB/Volo/Blogging/MongoDB/IBloggingMongoDbContext.cs
-
modules/docs/src/Volo.Docs.Domain/Volo/Docs/DocsConsts.cs
-
modules/docs/src/Volo.Docs.EntityFrameworkCore/Volo/Docs/EntityFrameworkCore/DocsDbContext.cs
-
modules/docs/src/Volo.Docs.EntityFrameworkCore/Volo/Docs/EntityFrameworkCore/IDocsDbContext.cs
-
modules/feature-management/src/Volo.Abp.FeatureManagement.Domain/Volo/Abp/FeatureManagement/FeatureManagementConsts.cs
-
modules/feature-management/src/Volo.Abp.FeatureManagement.EntityFrameworkCore/Volo/Abp/FeatureManagement/EntityFrameworkCore/FeatureManagementDbContext.cs
-
modules/feature-management/src/Volo.Abp.FeatureManagement.EntityFrameworkCore/Volo/Abp/FeatureManagement/EntityFrameworkCore/IFeatureManagementDbContext.cs
-
modules/feature-management/src/Volo.Abp.FeatureManagement.MongoDB/Volo/Abp/FeatureManagement/MongoDB/FeatureManagementMongoDbContext.cs
-
modules/feature-management/src/Volo.Abp.FeatureManagement.MongoDB/Volo/Abp/FeatureManagement/MongoDB/IFeatureManagementMongoDbContext.cs
-
modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/AbpIdentityConsts.cs
-
modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/IIdentityDbContext.cs
-
modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/IdentityDbContext.cs
-
modules/identity/src/Volo.Abp.Identity.MongoDB/Volo/Abp/Identity/MongoDB/AbpIdentityMongoDbContext.cs
-
modules/identity/src/Volo.Abp.Identity.MongoDB/Volo/Abp/Identity/MongoDB/IAbpIdentityMongoDbContext.cs
-
modules/identityserver/src/Volo.Abp.IdentityServer.Domain/Volo/Abp/IdentityServer/AbpIdentityServerConsts.cs
-
modules/identityserver/src/Volo.Abp.IdentityServer.EntityFrameworkCore/Volo/Abp/IdentityServer/EntityFrameworkCore/IIdentityServerDbContext.cs
-
modules/identityserver/src/Volo.Abp.IdentityServer.EntityFrameworkCore/Volo/Abp/IdentityServer/EntityFrameworkCore/IdentityServerDbContext.cs
-
modules/identityserver/src/Volo.Abp.IdentityServer.MongoDB/Volo/Abp/IdentityServer/MongoDB/AbpIdentityServerMongoDbContext.cs
-
modules/identityserver/src/Volo.Abp.IdentityServer.MongoDB/Volo/Abp/IdentityServer/MongoDB/IAbpIdentityServerMongoDbContext.cs
-
modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/AbpPermissionManagementConsts.cs
-
modules/permission-management/src/Volo.Abp.PermissionManagement.EntityFrameworkCore/Volo/Abp/PermissionManagement/EntityFrameworkCore/IPermissionManagementDbContext.cs
-
modules/permission-management/src/Volo.Abp.PermissionManagement.EntityFrameworkCore/Volo/Abp/PermissionManagement/EntityFrameworkCore/PermissionManagementDbContext.cs
-
modules/permission-management/src/Volo.Abp.PermissionManagement.MongoDB/Volo/Abp/PermissionManagement/MongoDb/IPermissionManagementMongoDbContext.cs
-
modules/permission-management/src/Volo.Abp.PermissionManagement.MongoDB/Volo/Abp/PermissionManagement/MongoDb/PermissionManagementMongoDbContext.cs
-
modules/setting-management/src/Volo.Abp.SettingManagement.Domain/Volo/Abp/SettingManagement/AbpSettingManagementConsts.cs
-
modules/setting-management/src/Volo.Abp.SettingManagement.EntityFrameworkCore/Volo/Abp/SettingManagement/EntityFrameworkCore/ISettingManagementDbContext.cs
-
modules/setting-management/src/Volo.Abp.SettingManagement.EntityFrameworkCore/Volo/Abp/SettingManagement/EntityFrameworkCore/SettingManagementDbContext.cs
-
modules/setting-management/src/Volo.Abp.SettingManagement.MongoDB/Volo/Abp/SettingManagement/MongoDB/ISettingManagementMongoDbContext.cs
-
modules/setting-management/src/Volo.Abp.SettingManagement.MongoDB/Volo/Abp/SettingManagement/MongoDB/SettingManagementMongoDbContext.cs
-
modules/tenant-management/src/Volo.Abp.TenantManagement.Domain/Volo/Abp/TenantManagement/AbpTenantManagementConsts.cs
-
modules/tenant-management/src/Volo.Abp.TenantManagement.EntityFrameworkCore/Volo/Abp/TenantManagement/EntityFrameworkCore/ITenantManagementDbContext.cs
-
modules/tenant-management/src/Volo.Abp.TenantManagement.EntityFrameworkCore/Volo/Abp/TenantManagement/EntityFrameworkCore/TenantManagementDbContext.cs
-
modules/tenant-management/src/Volo.Abp.TenantManagement.MongoDB/Volo/Abp/TenantManagement/MongoDb/ITenantManagementMongoDbContext.cs
-
modules/tenant-management/src/Volo.Abp.TenantManagement.MongoDB/Volo/Abp/TenantManagement/MongoDb/TenantManagementMongoDbContext.cs
|
|
|
@ -14,7 +14,7 @@ dotnet tool install -g Volo.Abp.Cli |
|
|
|
|
|
|
|
Use `abp new` command in an empty folder to create your project: |
|
|
|
|
|
|
|
```` |
|
|
|
````bash |
|
|
|
abp new Acme.BookStore |
|
|
|
```` |
|
|
|
|
|
|
|
|
|
|
|
@ -6,5 +6,7 @@ namespace Volo.Abp.AuditLogging |
|
|
|
public const string DefaultDbTablePrefix = "Abp"; |
|
|
|
|
|
|
|
public const string DefaultDbSchema = null; |
|
|
|
|
|
|
|
public const string ConnectionStringName = "AbpAuditLogging"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
|
|
|
|
namespace Volo.Abp.AuditLogging.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpAuditLogging")] |
|
|
|
[ConnectionStringName(AbpAuditLoggingConsts.ConnectionStringName)] |
|
|
|
public class AbpAuditLoggingDbContext : AbpDbContext<AbpAuditLoggingDbContext>, IAuditLoggingDbContext |
|
|
|
{ |
|
|
|
public static string TablePrefix { get; set; } = AbpAuditLoggingConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
|
|
|
|
namespace Volo.Abp.AuditLogging.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpAuditLogging")] |
|
|
|
[ConnectionStringName(AbpAuditLoggingConsts.ConnectionStringName)] |
|
|
|
public interface IAuditLoggingDbContext : IEfCoreDbContext |
|
|
|
{ |
|
|
|
DbSet<AuditLog> AuditLogs { get; set; } |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.MongoDB; |
|
|
|
|
|
|
|
namespace Volo.Abp.AuditLogging.MongoDB |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpAuditLogging")] |
|
|
|
[ConnectionStringName(AbpAuditLoggingConsts.ConnectionStringName)] |
|
|
|
public class AuditLoggingMongoDbContext : AbpMongoDbContext, IAuditLoggingMongoDbContext |
|
|
|
{ |
|
|
|
public static string CollectionPrefix { get; set; } = AbpAuditLoggingConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.MongoDB; |
|
|
|
|
|
|
|
namespace Volo.Abp.AuditLogging.MongoDB |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpAuditLogging")] |
|
|
|
[ConnectionStringName(AbpAuditLoggingConsts.ConnectionStringName)] |
|
|
|
public interface IAuditLoggingMongoDbContext : IAbpMongoDbContext |
|
|
|
{ |
|
|
|
IMongoCollection<AuditLog> AuditLogs { get; } |
|
|
|
|
|
|
|
@ -5,5 +5,7 @@ |
|
|
|
public const string DefaultDbTablePrefix = "Abp"; |
|
|
|
|
|
|
|
public const string DefaultDbSchema = null; |
|
|
|
|
|
|
|
public const string ConnectionStringName = "AbpBackgroundJobs"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
|
|
|
|
namespace Volo.Abp.BackgroundJobs.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpBackgroundJobs")] |
|
|
|
[ConnectionStringName(BackgroundJobsConsts.ConnectionStringName)] |
|
|
|
public class BackgroundJobsDbContext : AbpDbContext<BackgroundJobsDbContext>, IBackgroundJobsDbContext |
|
|
|
{ |
|
|
|
public static string TablePrefix { get; set; } = BackgroundJobsConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
|
|
|
|
namespace Volo.Abp.BackgroundJobs.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpBackgroundJobs")] |
|
|
|
[ConnectionStringName(BackgroundJobsConsts.ConnectionStringName)] |
|
|
|
public interface IBackgroundJobsDbContext : IEfCoreDbContext |
|
|
|
{ |
|
|
|
DbSet<BackgroundJobRecord> BackgroundJobs { get; } |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.MongoDB; |
|
|
|
|
|
|
|
namespace Volo.Abp.BackgroundJobs.MongoDB |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpBackgroundJobs")] |
|
|
|
[ConnectionStringName(BackgroundJobsConsts.ConnectionStringName)] |
|
|
|
public class BackgroundJobsMongoDbContext : AbpMongoDbContext, IBackgroundJobsMongoDbContext |
|
|
|
{ |
|
|
|
public static string CollectionPrefix { get; set; } = BackgroundJobsConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.MongoDB; |
|
|
|
|
|
|
|
namespace Volo.Abp.BackgroundJobs.MongoDB |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpBackgroundJobs")] |
|
|
|
[ConnectionStringName(BackgroundJobsConsts.ConnectionStringName)] |
|
|
|
public interface IBackgroundJobsMongoDbContext : IAbpMongoDbContext |
|
|
|
{ |
|
|
|
IMongoCollection<BackgroundJobRecord> BackgroundJobs { get; } |
|
|
|
|
|
|
|
@ -4,5 +4,6 @@ |
|
|
|
{ |
|
|
|
public const string DefaultDbTablePrefix = "Blg"; |
|
|
|
public const string DefaultDbSchema = null; |
|
|
|
public const string ConnectionStringName = "Blogging"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ using Volo.Blogging.Users; |
|
|
|
|
|
|
|
namespace Volo.Blogging.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("Blogging")] |
|
|
|
[ConnectionStringName(BloggingConsts.ConnectionStringName)] |
|
|
|
public class BloggingDbContext : AbpDbContext<BloggingDbContext>, IBloggingDbContext |
|
|
|
{ |
|
|
|
public static string TablePrefix { get; set; } = BloggingConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ using Volo.Blogging.Users; |
|
|
|
|
|
|
|
namespace Volo.Blogging.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("Blogging")] |
|
|
|
[ConnectionStringName(BloggingConsts.ConnectionStringName)] |
|
|
|
public interface IBloggingDbContext : IEfCoreDbContext |
|
|
|
{ |
|
|
|
DbSet<BlogUser> Users { get; } |
|
|
|
|
|
|
|
@ -11,7 +11,7 @@ using Volo.Blogging.Users; |
|
|
|
|
|
|
|
namespace Volo.Blogging.MongoDB |
|
|
|
{ |
|
|
|
[ConnectionStringName("Blogging")] |
|
|
|
[ConnectionStringName(BloggingConsts.ConnectionStringName)] |
|
|
|
public class BloggingMongoDbContext : AbpMongoDbContext, IBloggingMongoDbContext |
|
|
|
{ |
|
|
|
public static string CollectionPrefix { get; set; } = BloggingConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -8,7 +8,7 @@ using Volo.Blogging.Users; |
|
|
|
|
|
|
|
namespace Volo.Blogging.MongoDB |
|
|
|
{ |
|
|
|
[ConnectionStringName("Blogging")] |
|
|
|
[ConnectionStringName(BloggingConsts.ConnectionStringName)] |
|
|
|
public interface IBloggingMongoDbContext : IAbpMongoDbContext |
|
|
|
{ |
|
|
|
IMongoCollection<BlogUser> Users { get; } |
|
|
|
|
|
|
|
@ -5,5 +5,7 @@ |
|
|
|
public const string DefaultDbTablePrefix = "Docs"; |
|
|
|
|
|
|
|
public const string DefaultDbSchema = null; |
|
|
|
|
|
|
|
public const string ConnectionStringName = "Docs"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -5,7 +5,7 @@ using Volo.Docs.Projects; |
|
|
|
|
|
|
|
namespace Volo.Docs.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("Docs")] |
|
|
|
[ConnectionStringName(DocsConsts.ConnectionStringName)] |
|
|
|
public class DocsDbContext: AbpDbContext<DocsDbContext>, IDocsDbContext |
|
|
|
{ |
|
|
|
public static string TablePrefix { get; set; } = DocsConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -5,7 +5,7 @@ using Volo.Docs.Projects; |
|
|
|
|
|
|
|
namespace Volo.Docs.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("Docs")] |
|
|
|
[ConnectionStringName(DocsConsts.ConnectionStringName)] |
|
|
|
public interface IDocsDbContext : IEfCoreDbContext |
|
|
|
{ |
|
|
|
DbSet<Project> Projects { get; set; } |
|
|
|
|
|
|
|
@ -5,5 +5,7 @@ |
|
|
|
public const string DefaultDbTablePrefix = "Abp"; |
|
|
|
|
|
|
|
public const string DefaultDbSchema = null; |
|
|
|
|
|
|
|
public const string ConnectionStringName = "AbpFeatureManagement"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
|
|
|
|
namespace Volo.Abp.FeatureManagement.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpFeatureManagement")] |
|
|
|
[ConnectionStringName(FeatureManagementConsts.ConnectionStringName)] |
|
|
|
public class FeatureManagementDbContext : AbpDbContext<FeatureManagementDbContext>, IFeatureManagementDbContext |
|
|
|
{ |
|
|
|
public static string TablePrefix { get; set; } = FeatureManagementConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
|
|
|
|
namespace Volo.Abp.FeatureManagement.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpFeatureManagement")] |
|
|
|
[ConnectionStringName(FeatureManagementConsts.ConnectionStringName)] |
|
|
|
public interface IFeatureManagementDbContext : IEfCoreDbContext |
|
|
|
{ |
|
|
|
DbSet<FeatureValue> FeatureValues { get; set; } |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.MongoDB; |
|
|
|
|
|
|
|
namespace Volo.Abp.FeatureManagement.MongoDB |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpFeatureManagement")] |
|
|
|
[ConnectionStringName(FeatureManagementConsts.ConnectionStringName)] |
|
|
|
public class FeatureManagementMongoDbContext : AbpMongoDbContext, IFeatureManagementMongoDbContext |
|
|
|
{ |
|
|
|
public static string CollectionPrefix { get; set; } = FeatureManagementConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.MongoDB; |
|
|
|
|
|
|
|
namespace Volo.Abp.FeatureManagement.MongoDB |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpFeatureManagement")] |
|
|
|
[ConnectionStringName(FeatureManagementConsts.ConnectionStringName)] |
|
|
|
public interface IFeatureManagementMongoDbContext : IAbpMongoDbContext |
|
|
|
{ |
|
|
|
IMongoCollection<FeatureValue> FeatureValues { get; } |
|
|
|
|
|
|
|
@ -5,5 +5,7 @@ |
|
|
|
public const string DefaultDbTablePrefix = "Abp"; |
|
|
|
|
|
|
|
public const string DefaultDbSchema = null; |
|
|
|
|
|
|
|
public const string ConnectionStringName = "AbpIdentity"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
|
|
|
|
namespace Volo.Abp.Identity.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpIdentity")] |
|
|
|
[ConnectionStringName(AbpIdentityConsts.ConnectionStringName)] |
|
|
|
public interface IIdentityDbContext : IEfCoreDbContext |
|
|
|
{ |
|
|
|
DbSet<IdentityUser> Users { get; set; } |
|
|
|
|
|
|
|
@ -7,7 +7,7 @@ namespace Volo.Abp.Identity.EntityFrameworkCore |
|
|
|
/// <summary>
|
|
|
|
/// Base class for the Entity Framework database context used for identity.
|
|
|
|
/// </summary>
|
|
|
|
[ConnectionStringName("AbpIdentity")] |
|
|
|
[ConnectionStringName(AbpIdentityConsts.ConnectionStringName)] |
|
|
|
public class IdentityDbContext : AbpDbContext<IdentityDbContext>, IIdentityDbContext |
|
|
|
{ |
|
|
|
public static string TablePrefix { get; set; } = AbpIdentityConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.MongoDB; |
|
|
|
|
|
|
|
namespace Volo.Abp.Identity.MongoDB |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpIdentity")] |
|
|
|
[ConnectionStringName(AbpIdentityConsts.ConnectionStringName)] |
|
|
|
public class AbpIdentityMongoDbContext : AbpMongoDbContext, IAbpIdentityMongoDbContext |
|
|
|
{ |
|
|
|
public static string CollectionPrefix { get; set; } = AbpIdentityConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.MongoDB; |
|
|
|
|
|
|
|
namespace Volo.Abp.Identity.MongoDB |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpIdentity")] |
|
|
|
[ConnectionStringName(AbpIdentityConsts.ConnectionStringName)] |
|
|
|
public interface IAbpIdentityMongoDbContext : IAbpMongoDbContext |
|
|
|
{ |
|
|
|
IMongoCollection<IdentityUser> Users { get; } |
|
|
|
|
|
|
|
@ -5,5 +5,7 @@ |
|
|
|
public const string DefaultDbTablePrefix = "IdentityServer"; |
|
|
|
|
|
|
|
public const string DefaultDbSchema = null; |
|
|
|
|
|
|
|
public const string ConnectionStringName = "AbpIdentityServer"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -8,7 +8,7 @@ using Volo.Abp.IdentityServer.IdentityResources; |
|
|
|
|
|
|
|
namespace Volo.Abp.IdentityServer.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpIdentityServer")] |
|
|
|
[ConnectionStringName(AbpIdentityServerConsts.ConnectionStringName)] |
|
|
|
public interface IIdentityServerDbContext : IEfCoreDbContext |
|
|
|
{ |
|
|
|
DbSet<ApiResource> ApiResources { get; set; } |
|
|
|
|
|
|
|
@ -8,7 +8,7 @@ using Volo.Abp.IdentityServer.IdentityResources; |
|
|
|
|
|
|
|
namespace Volo.Abp.IdentityServer.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpIdentityServer")] |
|
|
|
[ConnectionStringName(AbpIdentityServerConsts.ConnectionStringName)] |
|
|
|
public class IdentityServerDbContext : AbpDbContext<IdentityServerDbContext>, IIdentityServerDbContext |
|
|
|
{ |
|
|
|
public static string TablePrefix { get; set; } = AbpIdentityServerConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -8,7 +8,7 @@ using IdentityResource = Volo.Abp.IdentityServer.IdentityResources.IdentityResou |
|
|
|
|
|
|
|
namespace Volo.Abp.IdentityServer.MongoDB |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpIdentityServer")] |
|
|
|
[ConnectionStringName(AbpIdentityServerConsts.ConnectionStringName)] |
|
|
|
public class AbpIdentityServerMongoDbContext : AbpMongoDbContext, IAbpIdentityServerMongoDbContext |
|
|
|
{ |
|
|
|
public static string CollectionPrefix { get; set; } = AbpIdentityServerConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -8,7 +8,7 @@ using ApiResource = Volo.Abp.IdentityServer.ApiResources.ApiResource; |
|
|
|
|
|
|
|
namespace Volo.Abp.IdentityServer.MongoDB |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpIdentityServer")] |
|
|
|
[ConnectionStringName(AbpIdentityServerConsts.ConnectionStringName)] |
|
|
|
public interface IAbpIdentityServerMongoDbContext : IAbpMongoDbContext |
|
|
|
{ |
|
|
|
IMongoCollection<ApiResource> ApiResources { get; } |
|
|
|
|
|
|
|
@ -5,5 +5,7 @@ |
|
|
|
public const string DefaultDbTablePrefix = "Abp"; |
|
|
|
|
|
|
|
public const string DefaultDbSchema = null; |
|
|
|
|
|
|
|
public const string ConnectionStringName = "AbpPermissionManagement"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
|
|
|
|
namespace Volo.Abp.PermissionManagement.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpPermissionManagement")] |
|
|
|
[ConnectionStringName(AbpPermissionManagementConsts.ConnectionStringName)] |
|
|
|
public interface IPermissionManagementDbContext : IEfCoreDbContext |
|
|
|
{ |
|
|
|
DbSet<PermissionGrant> PermissionGrants { get; set; } |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
|
|
|
|
namespace Volo.Abp.PermissionManagement.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpPermissionManagement")] |
|
|
|
[ConnectionStringName(AbpPermissionManagementConsts.ConnectionStringName)] |
|
|
|
public class PermissionManagementDbContext : AbpDbContext<PermissionManagementDbContext>, IPermissionManagementDbContext |
|
|
|
{ |
|
|
|
public static string TablePrefix { get; set; } = AbpPermissionManagementConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.MongoDB; |
|
|
|
|
|
|
|
namespace Volo.Abp.PermissionManagement.MongoDB |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpPermissionManagement")] |
|
|
|
[ConnectionStringName(AbpPermissionManagementConsts.ConnectionStringName)] |
|
|
|
public interface IPermissionManagementMongoDbContext : IAbpMongoDbContext |
|
|
|
{ |
|
|
|
IMongoCollection<PermissionGrant> PermissionGrants { get; } |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.MongoDB; |
|
|
|
|
|
|
|
namespace Volo.Abp.PermissionManagement.MongoDB |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpPermissionManagement")] |
|
|
|
[ConnectionStringName(AbpPermissionManagementConsts.ConnectionStringName)] |
|
|
|
public class PermissionManagementMongoDbContext : AbpMongoDbContext, IPermissionManagementMongoDbContext |
|
|
|
{ |
|
|
|
public static string CollectionPrefix { get; set; } = AbpPermissionManagementConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -5,5 +5,7 @@ |
|
|
|
public const string DefaultDbTablePrefix = "Abp"; |
|
|
|
|
|
|
|
public const string DefaultDbSchema = null; |
|
|
|
|
|
|
|
public const string ConnectionStringName = "AbpSettingManagement"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
|
|
|
|
namespace Volo.Abp.SettingManagement.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpSettingManagement")] |
|
|
|
[ConnectionStringName(AbpSettingManagementConsts.ConnectionStringName)] |
|
|
|
public interface ISettingManagementDbContext : IEfCoreDbContext |
|
|
|
{ |
|
|
|
DbSet<Setting> Settings { get; set; } |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
|
|
|
|
namespace Volo.Abp.SettingManagement.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpSettingManagement")] |
|
|
|
[ConnectionStringName(AbpSettingManagementConsts.ConnectionStringName)] |
|
|
|
public class SettingManagementDbContext : AbpDbContext<SettingManagementDbContext>, ISettingManagementDbContext |
|
|
|
{ |
|
|
|
public static string TablePrefix { get; set; } = AbpSettingManagementConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.MongoDB; |
|
|
|
|
|
|
|
namespace Volo.Abp.SettingManagement.MongoDB |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpSettingManagement")] |
|
|
|
[ConnectionStringName(AbpSettingManagementConsts.ConnectionStringName)] |
|
|
|
public interface ISettingManagementMongoDbContext : IAbpMongoDbContext |
|
|
|
{ |
|
|
|
IMongoCollection<Setting> Settings { get; } |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.MongoDB; |
|
|
|
|
|
|
|
namespace Volo.Abp.SettingManagement.MongoDB |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpSettingManagement")] |
|
|
|
[ConnectionStringName(AbpSettingManagementConsts.ConnectionStringName)] |
|
|
|
public class SettingManagementMongoDbContext : AbpMongoDbContext, ISettingManagementMongoDbContext |
|
|
|
{ |
|
|
|
public static string CollectionPrefix { get; set; } = AbpSettingManagementConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -5,5 +5,7 @@ |
|
|
|
public const string DefaultDbTablePrefix = "Abp"; |
|
|
|
|
|
|
|
public const string DefaultDbSchema = null; |
|
|
|
|
|
|
|
public const string ConnectionStringName = "AbpTenantManagement"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
|
|
|
|
namespace Volo.Abp.TenantManagement.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpTenantManagement")] |
|
|
|
[ConnectionStringName(AbpTenantManagementConsts.ConnectionStringName)] |
|
|
|
public interface ITenantManagementDbContext : IEfCoreDbContext |
|
|
|
{ |
|
|
|
DbSet<Tenant> Tenants { get; set; } |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
|
|
|
|
namespace Volo.Abp.TenantManagement.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpTenantManagement")] |
|
|
|
[ConnectionStringName(AbpTenantManagementConsts.ConnectionStringName)] |
|
|
|
public class TenantManagementDbContext : AbpDbContext<TenantManagementDbContext>, ITenantManagementDbContext |
|
|
|
{ |
|
|
|
public static string TablePrefix { get; set; } = AbpTenantManagementConsts.DefaultDbTablePrefix; |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.MongoDB; |
|
|
|
|
|
|
|
namespace Volo.Abp.TenantManagement.MongoDb |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpTenantManagement")] |
|
|
|
[ConnectionStringName(AbpTenantManagementConsts.ConnectionStringName)] |
|
|
|
public interface ITenantManagementMongoDbContext : IAbpMongoDbContext |
|
|
|
{ |
|
|
|
IMongoCollection<Tenant> Tenants { get; } |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.MongoDB; |
|
|
|
|
|
|
|
namespace Volo.Abp.TenantManagement.MongoDb |
|
|
|
{ |
|
|
|
[ConnectionStringName("AbpTenantManagement")] |
|
|
|
[ConnectionStringName(AbpTenantManagementConsts.ConnectionStringName)] |
|
|
|
public class TenantManagementMongoDbContext : AbpMongoDbContext, ITenantManagementMongoDbContext |
|
|
|
{ |
|
|
|
public static string CollectionPrefix { get; set; } = AbpTenantManagementConsts.DefaultDbTablePrefix; |
|
|
|
|