From f67de232b7395a1dcd6cb0760411a05b7c67b6bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Fri, 11 Oct 2019 14:36:59 +0300 Subject: [PATCH] Create AbpCommonDbProperties as a single point to set table prefix for modules. #1429 --- .../Volo/Abp/Data/AbpCommonDbProperties.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 framework/src/Volo.Abp.Data/Volo/Abp/Data/AbpCommonDbProperties.cs diff --git a/framework/src/Volo.Abp.Data/Volo/Abp/Data/AbpCommonDbProperties.cs b/framework/src/Volo.Abp.Data/Volo/Abp/Data/AbpCommonDbProperties.cs new file mode 100644 index 0000000000..726b8bd5f8 --- /dev/null +++ b/framework/src/Volo.Abp.Data/Volo/Abp/Data/AbpCommonDbProperties.cs @@ -0,0 +1,18 @@ +namespace Volo.Abp.Data +{ + public static class AbpCommonDbProperties + { + /// + /// This table prefix is shared by most of the ABP modules. + /// You can change it to set table prefix for all modules using this. + /// + /// Default value: "Abp". + /// + public static string DbTablePrefix { get; } = "Abp"; + + /// + /// Default value: null. + /// + public static string DbSchema { get; } = null; + } +}