mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 18:34:55 +08:00
Update db.Fastest
This commit is contained in:
@@ -94,7 +94,19 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
private DataTable ToDdateTable(List<T> datas)
|
private DataTable ToDdateTable(List<T> datas)
|
||||||
{
|
{
|
||||||
DataTable tempDataTable = ReflectionInoCore<DataTable>.GetInstance().GetOrCreate("BulkCopyAsync" + typeof(T).FullName, () => queryable.Where(it => false).ToDataTable());
|
DataTable tempDataTable = ReflectionInoCore<DataTable>.GetInstance().GetOrCreate("BulkCopyAsync" + typeof(T).FullName,
|
||||||
|
() =>
|
||||||
|
{
|
||||||
|
if (AsName == null)
|
||||||
|
{
|
||||||
|
return queryable.Where(it => false).ToDataTable();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return queryable.AS(AsName).Where(it => false).ToDataTable();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
var dt = new DataTable();
|
var dt = new DataTable();
|
||||||
foreach (DataColumn item in tempDataTable.Columns)
|
foreach (DataColumn item in tempDataTable.Columns)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -94,7 +94,19 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
private DataTable ToDdateTable(List<T> datas)
|
private DataTable ToDdateTable(List<T> datas)
|
||||||
{
|
{
|
||||||
DataTable tempDataTable = ReflectionInoCore<DataTable>.GetInstance().GetOrCreate("BulkCopyAsync" + typeof(T).FullName, () => queryable.Where(it => false).ToDataTable());
|
DataTable tempDataTable = ReflectionInoCore<DataTable>.GetInstance().GetOrCreate("BulkCopyAsync" + typeof(T).FullName,
|
||||||
|
() =>
|
||||||
|
{
|
||||||
|
if (AsName == null)
|
||||||
|
{
|
||||||
|
return queryable.Where(it => false).ToDataTable();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return queryable.AS(AsName).Where(it => false).ToDataTable();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
var dt = new DataTable();
|
var dt = new DataTable();
|
||||||
foreach (DataColumn item in tempDataTable.Columns)
|
foreach (DataColumn item in tempDataTable.Columns)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user