mirror of https://github.com/abpframework/abp.git
20 changed files with 81 additions and 86 deletions
@ -1,9 +0,0 @@ |
|||
namespace Volo.Blogging |
|||
{ |
|||
public static class BloggingConsts |
|||
{ |
|||
public const string DefaultDbTablePrefix = "Blg"; |
|||
public const string DefaultDbSchema = null; |
|||
public const string ConnectionStringName = "Blogging"; |
|||
} |
|||
} |
|||
@ -0,0 +1,20 @@ |
|||
namespace Volo.Blogging |
|||
{ |
|||
public static class BloggingDbProperties |
|||
{ |
|||
/// <summary>
|
|||
/// Default value: "Blg".
|
|||
/// </summary>
|
|||
public static string DbTablePrefix { get; } = "Blg"; |
|||
|
|||
/// <summary>
|
|||
/// Default value: "null".
|
|||
/// </summary>
|
|||
public static string DbSchema { get; } = null; |
|||
|
|||
/// <summary>
|
|||
/// "Blogging".
|
|||
/// </summary>
|
|||
public const string ConnectionStringName = "Blogging"; |
|||
} |
|||
} |
|||
@ -1,11 +1,14 @@ |
|||
using Volo.Abp.EntityFrameworkCore.Modeling; |
|||
using JetBrains.Annotations; |
|||
using Volo.Abp.EntityFrameworkCore.Modeling; |
|||
|
|||
namespace Volo.Blogging.EntityFrameworkCore |
|||
{ |
|||
public class BloggingModelBuilderConfigurationOptions : ModelBuilderConfigurationOptions |
|||
{ |
|||
public BloggingModelBuilderConfigurationOptions() |
|||
: base(BloggingConsts.DefaultDbTablePrefix, BloggingConsts.DefaultDbSchema) |
|||
public BloggingModelBuilderConfigurationOptions( |
|||
[NotNull] string tablePrefix = "", |
|||
[CanBeNull] string schema = null) |
|||
: base(tablePrefix, schema) |
|||
{ |
|||
} |
|||
} |
|||
|
|||
@ -1,11 +0,0 @@ |
|||
namespace Volo.Docs |
|||
{ |
|||
public static class DocsConsts |
|||
{ |
|||
public const string DefaultDbTablePrefix = "Docs"; |
|||
|
|||
public const string DefaultDbSchema = null; |
|||
|
|||
public const string ConnectionStringName = "Docs"; |
|||
} |
|||
} |
|||
@ -0,0 +1,11 @@ |
|||
namespace Volo.Docs |
|||
{ |
|||
public static class DocsDbProperties |
|||
{ |
|||
public const string DbTablePrefix = "Docs"; |
|||
|
|||
public const string DbSchema = null; |
|||
|
|||
public const string ConnectionStringName = "Docs"; |
|||
} |
|||
} |
|||
@ -1,11 +1,14 @@ |
|||
using Volo.Abp.EntityFrameworkCore.Modeling; |
|||
using JetBrains.Annotations; |
|||
using Volo.Abp.EntityFrameworkCore.Modeling; |
|||
|
|||
namespace Volo.Docs.EntityFrameworkCore |
|||
{ |
|||
public class DocsModelBuilderConfigurationOptions : ModelBuilderConfigurationOptions |
|||
{ |
|||
public DocsModelBuilderConfigurationOptions() |
|||
: base(DocsConsts.DefaultDbTablePrefix, DocsConsts.DefaultDbSchema) |
|||
public DocsModelBuilderConfigurationOptions( |
|||
[NotNull] string tablePrefix, |
|||
[CanBeNull] string schema) |
|||
: base(tablePrefix, schema) |
|||
{ |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue