- 修复 Oracle/Sqlite IInsert.ExecuteInserted 方法,返回了被 clear 过后的 _source;

This commit is contained in:
28810
2019-11-29 21:46:53 +08:00
parent 27f053f00b
commit dcd0ef5750
3 changed files with 12 additions and 6 deletions

View File

@ -145,8 +145,9 @@ namespace FreeSql.Oracle.Curd
var sql = this.ToSql();
if (string.IsNullOrEmpty(sql)) return new List<T1>();
var ret = _source.ToList();
this.RawExecuteAffrows();
return _source;
return ret;
}
#if net40
@ -213,8 +214,9 @@ namespace FreeSql.Oracle.Curd
var sql = this.ToSql();
if (string.IsNullOrEmpty(sql)) return new List<T1>();
var ret = _source.ToList();
await this.RawExecuteAffrowsAsync();
return _source;
return ret;
}
#endif
}