Browse Source

Update core

pull/1/head
skx 4 years ago
parent
commit
b203e36a6b
  1. 12
      Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Infrastructure/InstanceFactory.cs

12
Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Infrastructure/InstanceFactory.cs

@ -25,6 +25,14 @@ namespace SqlSugar
{
return new SqlServerQueryable<T>();
}
else if (currentConnectionConfig.DbType == DbType.MySql)
{
return new MySqlQueryable<T>();
}
else if (currentConnectionConfig.DbType == DbType.PostgreSQL)
{
return new PostgreSQLQueryable<T>();
}
else
{
string className = "Queryable";
@ -246,6 +254,10 @@ namespace SqlSugar
{
return new SqlServerDbBind();
}
else if (currentConnectionConfig.DbType == DbType.MySql)
{
return new MySqlDbBind();
}
else
{
IDbBind result = CreateInstance<IDbBind>(GetClassName(currentConnectionConfig.DbType.ToString(), "DbBind"));

Loading…
Cancel
Save