Update oscar

This commit is contained in:
sunkaixuna
2021-09-05 16:06:24 +08:00
parent 8b97a92b67
commit 2f9479b48b
5 changed files with 18 additions and 1 deletions

View File

@@ -374,6 +374,9 @@ namespace SqlSugar
case DbType.Dm:
DependencyManagement.TryDm();
break;
case DbType.Oscar:
DependencyManagement.TryOscar();
break;
default:
throw new Exception("ConnectionConfig.DbType is null");
}

View File

@@ -13,6 +13,7 @@ namespace SqlSugar
Oracle,
PostgreSQL,
Dm,
Kdbndp
Kdbndp,
Oscar
}
}

View File

@@ -242,6 +242,10 @@ namespace SqlSugar
{
return new KdbndpInserttable<T>();
}
else if (currentConnectionConfig.DbType == DbType.Oscar)
{
return new KdbndpInserttable<T>();
}
else
{
return new InsertableProvider<T>();

View File

@@ -133,5 +133,10 @@ namespace SqlSugar
}
}
}
public static void TryOscar()
{
throw new Exception("Oscar.NetCore版本下使用");
}
}
}

View File

@@ -242,6 +242,10 @@ namespace SqlSugar
{
return new KdbndpInserttable<T>();
}
else if (currentConnectionConfig.DbType == DbType.Oscar)
{
return new KdbndpInserttable<T>();
}
else
{
return new InsertableProvider<T>();