Browse Source

db.Fastest oracle

pull/10/head
sunkaixuna 3 years ago
parent
commit
a93ecde9de
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/FastestProvider/Private.cs
  2. 16
      Src/Asp.Net/SqlSugar/OnlyNet/OracleFastBuilder.cs
  3. 1
      Src/Asp.Net/SqlSugar/SqlSugar.csproj

4
Src/Asp.Net/SqlSugar/Abstract/FastestProvider/Private.cs

@ -20,7 +20,7 @@ namespace SqlSugar
case DbType.Sqlite: case DbType.Sqlite:
break; break;
case DbType.Oracle: case DbType.Oracle:
break; return new OracleFastBuilder();
case DbType.PostgreSQL: case DbType.PostgreSQL:
return new PostgreSQLFastBuilder(this.entityInfo); return new PostgreSQLFastBuilder(this.entityInfo);
case DbType.Dm: case DbType.Dm:
@ -32,7 +32,7 @@ namespace SqlSugar
default: default:
break; break;
} }
throw new Exception(this.context.CurrentConnectionConfig.DbType + "开发中"); throw new Exception(this.context.CurrentConnectionConfig.DbType + "开发中...");
} }
private DataTable ToDdateTable(List<T> datas) private DataTable ToDdateTable(List<T> datas)
{ {

16
Src/Asp.Net/SqlSugar/OnlyNet/OracleFastBuilder.cs

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SqlSugar.OnlyNet
{
public class OracleFastBuilder
{
public OracleFastBuilder()
{
throw new Exception("Oracle bulk copy , only.net CORE is supported");
}
}
}

1
Src/Asp.Net/SqlSugar/SqlSugar.csproj

@ -95,6 +95,7 @@
<Compile Include="Abstract\FilterProvider\FilterProvider.cs" /> <Compile Include="Abstract\FilterProvider\FilterProvider.cs" />
<Compile Include="Interface\IFastBuilder.cs" /> <Compile Include="Interface\IFastBuilder.cs" />
<Compile Include="Interface\IFastest.cs" /> <Compile Include="Interface\IFastest.cs" />
<Compile Include="OnlyNet\OracleFastBuilder.cs" />
<Compile Include="Realization\MySql\SqlBuilder\MySqlFastBuilder.cs" /> <Compile Include="Realization\MySql\SqlBuilder\MySqlFastBuilder.cs" />
<Compile Include="Realization\PostgreSQL\SqlBuilder\PostgreSQLFastBuilder.cs" /> <Compile Include="Realization\PostgreSQL\SqlBuilder\PostgreSQLFastBuilder.cs" />
<Compile Include="Realization\SqlServer\SqlBuilder\SqlServerFastBuilder.cs" /> <Compile Include="Realization\SqlServer\SqlBuilder\SqlServerFastBuilder.cs" />

Loading…
Cancel
Save