Explorar el Código

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

master
Savorboard hace 6 años
padre
commit
a2524f120d
Se han modificado 2 ficheros con 7 adiciones y 3 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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";
}
}

Cargando…
Cancelar
Guardar