mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
- 修复 fsql.InsertOrUpdate 在同线程事务模式内使用的 bug #402;
This commit is contained in:
@ -214,6 +214,9 @@ namespace FreeSql.Internal.CommonProvider
|
||||
var ss = SplitSourceByIdentityValueIsNull(_source);
|
||||
try
|
||||
{
|
||||
if (_transaction == null)
|
||||
this.WithTransaction(_orm.Ado.TransactionCurrentThread);
|
||||
|
||||
if (_transaction != null)
|
||||
{
|
||||
_source = ss.Item1;
|
||||
@ -314,6 +317,9 @@ namespace FreeSql.Internal.CommonProvider
|
||||
var ss = SplitSourceByIdentityValueIsNull(_source);
|
||||
try
|
||||
{
|
||||
if (_transaction == null)
|
||||
this.WithTransaction(_orm.Ado.TransactionCurrentThread);
|
||||
|
||||
if (_transaction != null)
|
||||
{
|
||||
_source = ss.Item1;
|
||||
|
Reference in New Issue
Block a user