mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-21 02:58:05 +08:00
Update db.Reportable
This commit is contained in:
@@ -760,6 +760,7 @@ namespace SqlSugar
|
|||||||
var result = new ReportableProvider<T>(data);
|
var result = new ReportableProvider<T>(data);
|
||||||
result.formatBuilder = InstanceFactory.GetInsertBuilder(this.Context.CurrentConnectionConfig);
|
result.formatBuilder = InstanceFactory.GetInsertBuilder(this.Context.CurrentConnectionConfig);
|
||||||
result.Context = this;
|
result.Context = this;
|
||||||
|
result.formatBuilder.Context = this;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
public IReportable<T> Reportable<T>(List<T> list)
|
public IReportable<T> Reportable<T>(List<T> list)
|
||||||
@@ -767,6 +768,7 @@ namespace SqlSugar
|
|||||||
var result = new ReportableProvider<T>(list);
|
var result = new ReportableProvider<T>(list);
|
||||||
result.formatBuilder = InstanceFactory.GetInsertBuilder(this.Context.CurrentConnectionConfig);
|
result.formatBuilder = InstanceFactory.GetInsertBuilder(this.Context.CurrentConnectionConfig);
|
||||||
result.Context = this;
|
result.Context = this;
|
||||||
|
result.formatBuilder.Context = this;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
public IReportable<T> Reportable<T>(T [] list)
|
public IReportable<T> Reportable<T>(T [] list)
|
||||||
@@ -776,6 +778,7 @@ namespace SqlSugar
|
|||||||
var result = new ReportableProvider<T>(list.ToList());
|
var result = new ReportableProvider<T>(list.ToList());
|
||||||
result.formatBuilder = InstanceFactory.GetInsertBuilder(this.Context.CurrentConnectionConfig);
|
result.formatBuilder = InstanceFactory.GetInsertBuilder(this.Context.CurrentConnectionConfig);
|
||||||
result.Context = this;
|
result.Context = this;
|
||||||
|
result.formatBuilder.Context = this;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
Reference in New Issue
Block a user