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