Synchronization code

This commit is contained in:
sunkaixuan 2022-12-16 20:25:40 +08:00
parent 25bdb39694
commit c53e012675
5 changed files with 8 additions and 1 deletions

View File

@ -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; }

View File

@ -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)
{

View File

@ -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; }

View File

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

View File

@ -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; }