mirror of https://github.com/abpframework/abp.git
4 changed files with 50 additions and 1 deletions
@ -0,0 +1,32 @@ |
|||
using JetBrains.Annotations; |
|||
|
|||
namespace Volo.Abp.EntityFrameworkCore.Modeling |
|||
{ |
|||
public class ModelBuilderConfigurationOptions |
|||
{ |
|||
[NotNull] |
|||
public string TablePrefix |
|||
{ |
|||
get => _tablePrefix; |
|||
set |
|||
{ |
|||
Check.NotNull(value, nameof(value), $"{nameof(TablePrefix)} can not be null! Set to empty string if you don't want a table prefix."); |
|||
_tablePrefix = value; |
|||
} |
|||
} |
|||
private string _tablePrefix; |
|||
|
|||
[CanBeNull] |
|||
public string Schema { get; set; } |
|||
|
|||
public ModelBuilderConfigurationOptions( |
|||
[NotNull] string tablePrefix = "", |
|||
[CanBeNull] string schema = null) |
|||
{ |
|||
Check.NotNull(tablePrefix, nameof(tablePrefix)); |
|||
|
|||
TablePrefix = tablePrefix; |
|||
Schema = schema; |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue