diff --git a/Providers/FreeSql.Provider.Odbc/Oracle/Curd/OdbcOracleInsert.cs b/Providers/FreeSql.Provider.Odbc/Oracle/Curd/OdbcOracleInsert.cs index 7e584c90..f728c68c 100644 --- a/Providers/FreeSql.Provider.Odbc/Oracle/Curd/OdbcOracleInsert.cs +++ b/Providers/FreeSql.Provider.Odbc/Oracle/Curd/OdbcOracleInsert.cs @@ -144,8 +144,9 @@ namespace FreeSql.Odbc.Oracle var sql = this.ToSql(); if (string.IsNullOrEmpty(sql)) return new List(); + var ret = _source.ToList(); this.RawExecuteAffrows(); - return _source; + return ret; } #if net40 @@ -212,8 +213,9 @@ namespace FreeSql.Odbc.Oracle var sql = this.ToSql(); if (string.IsNullOrEmpty(sql)) return new List(); + var ret = _source.ToList(); await this.RawExecuteAffrowsAsync(); - return _source; + return ret; } #endif } diff --git a/Providers/FreeSql.Provider.Oracle/Curd/OracleInsert.cs b/Providers/FreeSql.Provider.Oracle/Curd/OracleInsert.cs index afda477c..b48404a5 100644 --- a/Providers/FreeSql.Provider.Oracle/Curd/OracleInsert.cs +++ b/Providers/FreeSql.Provider.Oracle/Curd/OracleInsert.cs @@ -145,8 +145,9 @@ namespace FreeSql.Oracle.Curd var sql = this.ToSql(); if (string.IsNullOrEmpty(sql)) return new List(); + 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(); + var ret = _source.ToList(); await this.RawExecuteAffrowsAsync(); - return _source; + return ret; } #endif } diff --git a/Providers/FreeSql.Provider.Sqlite/Curd/SqliteInsert.cs b/Providers/FreeSql.Provider.Sqlite/Curd/SqliteInsert.cs index 034aeabb..dd03e1e7 100644 --- a/Providers/FreeSql.Provider.Sqlite/Curd/SqliteInsert.cs +++ b/Providers/FreeSql.Provider.Sqlite/Curd/SqliteInsert.cs @@ -52,8 +52,9 @@ namespace FreeSql.Sqlite.Curd var sql = this.ToSql(); if (string.IsNullOrEmpty(sql)) return new List(); + var ret = _source.ToList(); this.RawExecuteAffrows(); - return _source; + return ret; } #if net40 @@ -93,8 +94,9 @@ namespace FreeSql.Sqlite.Curd var sql = this.ToSql(); if (string.IsNullOrEmpty(sql)) return new List(); + var ret = _source.ToList(); await this.RawExecuteAffrowsAsync(); - return _source; + return ret; } #endif }