From 78f67ffceb5d98b989e869ae65089258555a5d75 Mon Sep 17 00:00:00 2001 From: maliming Date: Mon, 17 Jul 2023 10:50:05 +0800 Subject: [PATCH] Set `DbSchema` as `AbpCommonDbProperties.DbSchema`. --- .../Volo/Blogging/AbpBloggingDbProperties.cs | 6 ++++-- .../Volo.CmsKit.Domain/Volo/CmsKit/AbpCmsKitDbProperties.cs | 6 ++++-- .../src/Volo.Docs.Domain/Volo/Docs/AbpDocsDbProperties.cs | 6 ++++-- .../Abp/IdentityServer/AbpIdentityServerDbProperties.cs | 6 ++++-- .../Volo/Abp/OpenIddict/AbpOpenIddictDbProperties.cs | 6 ++++-- 5 files changed, 20 insertions(+), 10 deletions(-) diff --git a/modules/blogging/src/Volo.Blogging.Domain/Volo/Blogging/AbpBloggingDbProperties.cs b/modules/blogging/src/Volo.Blogging.Domain/Volo/Blogging/AbpBloggingDbProperties.cs index 464ea2c348..24b478d5a2 100644 --- a/modules/blogging/src/Volo.Blogging.Domain/Volo/Blogging/AbpBloggingDbProperties.cs +++ b/modules/blogging/src/Volo.Blogging.Domain/Volo/Blogging/AbpBloggingDbProperties.cs @@ -1,4 +1,6 @@ -namespace Volo.Blogging +using Volo.Abp.Data; + +namespace Volo.Blogging { public static class AbpBloggingDbProperties { @@ -10,7 +12,7 @@ /// /// Default value: "null". /// - public static string DbSchema { get; set; } = null; + public static string DbSchema { get; set; } = AbpCommonDbProperties.DbSchema; /// /// "Blogging". diff --git a/modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/AbpCmsKitDbProperties.cs b/modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/AbpCmsKitDbProperties.cs index 1ce1fd8413..a323f82e59 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/AbpCmsKitDbProperties.cs +++ b/modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/AbpCmsKitDbProperties.cs @@ -1,10 +1,12 @@ -namespace Volo.CmsKit; +using Volo.Abp.Data; + +namespace Volo.CmsKit; public static class AbpCmsKitDbProperties { public static string DbTablePrefix { get; set; } = "Cms"; - public static string DbSchema { get; set; } = null; + public static string DbSchema { get; set; } = AbpCommonDbProperties.DbSchema; public const string ConnectionStringName = "CmsKit"; } diff --git a/modules/docs/src/Volo.Docs.Domain/Volo/Docs/AbpDocsDbProperties.cs b/modules/docs/src/Volo.Docs.Domain/Volo/Docs/AbpDocsDbProperties.cs index 093bf477a6..d52195117f 100644 --- a/modules/docs/src/Volo.Docs.Domain/Volo/Docs/AbpDocsDbProperties.cs +++ b/modules/docs/src/Volo.Docs.Domain/Volo/Docs/AbpDocsDbProperties.cs @@ -1,10 +1,12 @@ -namespace Volo.Docs +using Volo.Abp.Data; + +namespace Volo.Docs { public static class AbpDocsDbProperties { public static string DbTablePrefix { get; set; } = "Docs"; - public static string DbSchema { get; set; } = null; + public static string DbSchema { get; set; } = AbpCommonDbProperties.DbSchema; public const string ConnectionStringName = "Docs"; } diff --git a/modules/identityserver/src/Volo.Abp.IdentityServer.Domain/Volo/Abp/IdentityServer/AbpIdentityServerDbProperties.cs b/modules/identityserver/src/Volo.Abp.IdentityServer.Domain/Volo/Abp/IdentityServer/AbpIdentityServerDbProperties.cs index 836c26ec65..10d766495d 100644 --- a/modules/identityserver/src/Volo.Abp.IdentityServer.Domain/Volo/Abp/IdentityServer/AbpIdentityServerDbProperties.cs +++ b/modules/identityserver/src/Volo.Abp.IdentityServer.Domain/Volo/Abp/IdentityServer/AbpIdentityServerDbProperties.cs @@ -1,10 +1,12 @@ -namespace Volo.Abp.IdentityServer; +using Volo.Abp.Data; + +namespace Volo.Abp.IdentityServer; public static class AbpIdentityServerDbProperties { public static string DbTablePrefix { get; set; } = "IdentityServer"; - public static string DbSchema { get; set; } = null; + public static string DbSchema { get; set; } = AbpCommonDbProperties.DbSchema; public const string ConnectionStringName = "AbpIdentityServer"; } diff --git a/modules/openiddict/src/Volo.Abp.OpenIddict.Domain/Volo/Abp/OpenIddict/AbpOpenIddictDbProperties.cs b/modules/openiddict/src/Volo.Abp.OpenIddict.Domain/Volo/Abp/OpenIddict/AbpOpenIddictDbProperties.cs index 795391630a..841af4cdae 100644 --- a/modules/openiddict/src/Volo.Abp.OpenIddict.Domain/Volo/Abp/OpenIddict/AbpOpenIddictDbProperties.cs +++ b/modules/openiddict/src/Volo.Abp.OpenIddict.Domain/Volo/Abp/OpenIddict/AbpOpenIddictDbProperties.cs @@ -1,10 +1,12 @@ -namespace Volo.Abp.OpenIddict; +using Volo.Abp.Data; + +namespace Volo.Abp.OpenIddict; public static class AbpOpenIddictDbProperties { public static string DbTablePrefix { get; set; } = "OpenIddict"; - public static string DbSchema { get; set; } = null; + public static string DbSchema { get; set; } = AbpCommonDbProperties.DbSchema; public const string ConnectionStringName = "AbpOpenIddict"; }