Database type name should use type AssemblyQualifiedName instead of maigic string
This commit is contained in:
@ -14,11 +14,20 @@ namespace Oqtane.Database.MySQL
|
||||
|
||||
private static string _name => "MySQL";
|
||||
|
||||
private readonly static string _typeName;
|
||||
|
||||
static MySQLDatabase()
|
||||
{
|
||||
var typeQualifiedName = typeof(MySQLDatabase).AssemblyQualifiedName;
|
||||
|
||||
_typeName = typeQualifiedName.Substring(0, typeQualifiedName.IndexOf(", Version"));
|
||||
}
|
||||
|
||||
public MySQLDatabase() :base(_name, _friendlyName) { }
|
||||
|
||||
public override string Provider => "MySql.EntityFrameworkCore";
|
||||
|
||||
public override string TypeName => "Oqtane.Database.MySQL.MySQLDatabase, Oqtane.Database.MySQL";
|
||||
public override string TypeName => _typeName;
|
||||
|
||||
public override OperationBuilder<AddColumnOperation> AddAutoIncrementColumn(ColumnsBuilder table, string name)
|
||||
{
|
||||
|
Reference in New Issue
Block a user