Browse Source

Synchronization code

pull/30/head
sunkaixuan 2 years ago
parent
commit
c53e012675
  1. 1
      Src/Asp.Net/SqlSugar/Abstract/FastestProvider/FastBuilder.cs
  2. 5
      Src/Asp.Net/SqlSugar/Abstract/FastestProvider/Private.cs
  3. 1
      Src/Asp.Net/SqlSugar/Interface/IFastBuilder.cs
  4. 1
      Src/Asp.Net/SqlSugar/OnlyNet/OracleFastBuilder.cs
  5. 1
      Src/Asp.Net/SqlSugar/Realization/Sqlite/SqlBuilder/SqliteFastBuilder.cs

1
Src/Asp.Net/SqlSugar/Abstract/FastestProvider/FastBuilder.cs

@ -9,6 +9,7 @@ namespace SqlSugar
{
public class FastBuilder
{
public EntityInfo FastEntityInfo { get; set; }
public virtual bool IsActionUpdateColumns { get; set; }
public virtual DbFastestProperties DbFastestProperties { get; set; }
public SqlSugarProvider Context { get; set; }

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

@ -42,7 +42,10 @@ namespace SqlSugar
default:
break;
}
throw new Exception(this.context.CurrentConnectionConfig.DbType + "开发中...");
var reslut = InstanceFactory.CreateInstance<IFastBuilder>($"SqlSugar.{this.context.CurrentConnectionConfig.DbType}FastBuilder");
reslut.CharacterSet = this.CharacterSet;
reslut.FastEntityInfo = this.entityInfo;
return reslut;
}
private DataTable ToDdateTable(List<T> datas)
{

1
Src/Asp.Net/SqlSugar/Interface/IFastBuilder.cs

@ -9,6 +9,7 @@ namespace SqlSugar
{
public interface IFastBuilder
{
EntityInfo FastEntityInfo { get; set; }
bool IsActionUpdateColumns { get; set; }
DbFastestProperties DbFastestProperties { get; set; }
SqlSugarProvider Context { get; set; }

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

@ -9,6 +9,7 @@ namespace SqlSugar
{
public class OracleFastBuilder:IFastBuilder
{
public EntityInfo FastEntityInfo { get; set; }
public string CharacterSet { get; set; }
public OracleFastBuilder(EntityInfo entityInfo)
{

1
Src/Asp.Net/SqlSugar/Realization/Sqlite/SqlBuilder/SqliteFastBuilder.cs

@ -10,6 +10,7 @@ namespace SqlSugar
{
public class SqliteFastBuilder : IFastBuilder
{
public EntityInfo FastEntityInfo { get; set; }
private EntityInfo entityInfo;
private bool IsUpdate = false;
public string CharacterSet { get; set; }

Loading…
Cancel
Save