Commit a2524f12 authored by Savorboard's avatar Savorboard

remove `TableNamePrefix` option from `MySqlOptions` to `EFOptions`. #84

parent cc94a679
...@@ -5,6 +5,13 @@ namespace DotNetCore.CAP ...@@ -5,6 +5,13 @@ namespace DotNetCore.CAP
{ {
public class EFOptions public class EFOptions
{ {
public const string DefaultSchema = "cap";
/// <summary>
/// Gets or sets the table name prefix to use when creating database objects.
/// </summary>
public string TableNamePrefix { get; set; } = DefaultSchema;
/// <summary> /// <summary>
/// EF db context type. /// EF db context type.
/// </summary> /// </summary>
......
// ReSharper disable once CheckNamespace // ReSharper disable once CheckNamespace
namespace DotNetCore.CAP namespace DotNetCore.CAP
{ {
public class MySqlOptions : EFOptions public class MySqlOptions : EFOptions
...@@ -8,7 +7,5 @@ namespace DotNetCore.CAP ...@@ -8,7 +7,5 @@ namespace DotNetCore.CAP
/// Gets or sets the database's connection string that will be used to store database entities. /// Gets or sets the database's connection string that will be used to store database entities.
/// </summary> /// </summary>
public string ConnectionString { get; set; } public string ConnectionString { get; set; }
public string TableNamePrefix { get; set; } = "cap";
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment