Update db.Reportable

This commit is contained in:
sunkaixuna 2021-07-04 12:40:05 +08:00
parent bc237f937e
commit 2f58a34cdd

View File

@ -760,6 +760,7 @@ namespace SqlSugar
var result = new ReportableProvider<T>(data);
result.formatBuilder = InstanceFactory.GetInsertBuilder(this.Context.CurrentConnectionConfig);
result.Context = this;
result.formatBuilder.Context = this;
return result;
}
public IReportable<T> Reportable<T>(List<T> list)
@ -767,6 +768,7 @@ namespace SqlSugar
var result = new ReportableProvider<T>(list);
result.formatBuilder = InstanceFactory.GetInsertBuilder(this.Context.CurrentConnectionConfig);
result.Context = this;
result.formatBuilder.Context = this;
return result;
}
public IReportable<T> Reportable<T>(T [] list)
@ -776,6 +778,7 @@ namespace SqlSugar
var result = new ReportableProvider<T>(list.ToList());
result.formatBuilder = InstanceFactory.GetInsertBuilder(this.Context.CurrentConnectionConfig);
result.Context = this;
result.formatBuilder.Context = this;
return result;
}
#endregion