mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 16:50:33 +08:00
Synchronizing Code
This commit is contained in:
@@ -32,7 +32,13 @@ namespace SqlSugar
|
||||
{
|
||||
List<IConditionalModel> conditList = new List<IConditionalModel>();
|
||||
SetConditList(itemList, Columns, conditList);
|
||||
var addItem = this.Context.Queryable<object>().AS(tableName).Where(conditList).ToDataTable().Rows.Cast<DataRow>().ToList();
|
||||
string selector = null;
|
||||
if (queryable.SqlBuilder.SqlParameterKeyWord == ":")
|
||||
{
|
||||
//Oracle driver bug: Error when querying DataTable after dynamically adding columns using '*'.
|
||||
selector = " * /*" + Guid.NewGuid() + "*/";
|
||||
}
|
||||
var addItem = this.Context.Queryable<object>().AS(tableName).Where(conditList).Select(selector).ToDataTable().Rows.Cast<DataRow>().ToList();
|
||||
this.dbDataList.AddRange(addItem);
|
||||
});
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user