Browse Source

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

master
Savorboard 6 years ago
parent
commit
a2524f120d
2 changed files with 7 additions and 3 deletions
  1. +7
    -0
      src/DotNetCore.CAP.MySql/CAP.EFOptions.cs
  2. +0
    -3
      src/DotNetCore.CAP.MySql/CAP.MySqlOptions.cs

+ 7
- 0
src/DotNetCore.CAP.MySql/CAP.EFOptions.cs View File

@@ -5,6 +5,13 @@ namespace DotNetCore.CAP
{
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>
/// EF db context type.
/// </summary>


+ 0
- 3
src/DotNetCore.CAP.MySql/CAP.MySqlOptions.cs View File

@@ -1,5 +1,4 @@
// ReSharper disable once CheckNamespace

namespace DotNetCore.CAP
{
public class MySqlOptions : EFOptions
@@ -8,7 +7,5 @@ namespace DotNetCore.CAP
/// Gets or sets the database's connection string that will be used to store database entities.
/// </summary>
public string ConnectionString { get; set; }

public string TableNamePrefix { get; set; } = "cap";
}
}

Loading…
Cancel
Save