mirror of
https://github.com/project-redbud/FunGame-Server.git
synced 2025-12-05 00:06:03 +00:00
修复 ReSet 会导致前引用数据丢失的问题
This commit is contained in:
parent
a989b8b56d
commit
5c002a40a8
@ -287,7 +287,6 @@ namespace Milimoe.FunGame.Server.Services.DataUtility
|
||||
{
|
||||
SelectCommand = command
|
||||
};
|
||||
_dataSet = new();
|
||||
_affectedRows = adapter.Fill(_dataSet);
|
||||
|
||||
if (localTransaction) Commit();
|
||||
@ -352,7 +351,6 @@ namespace Milimoe.FunGame.Server.Services.DataUtility
|
||||
{
|
||||
SelectCommand = command
|
||||
};
|
||||
_dataSet = new();
|
||||
_affectedRows = await adapter.FillAsync(_dataSet);
|
||||
|
||||
if (localTransaction) Commit();
|
||||
@ -482,7 +480,7 @@ namespace Milimoe.FunGame.Server.Services.DataUtility
|
||||
_result = SQLResult.NotFound;
|
||||
_affectedRows = 0;
|
||||
_lastInsertId = 0;
|
||||
DataSet.Clear();
|
||||
_dataSet = new();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -285,7 +285,6 @@ namespace Milimoe.FunGame.Server.Services.DataUtility
|
||||
|
||||
ReSet();
|
||||
using SqliteDataReader reader = command.ExecuteReader();
|
||||
_dataSet = new();
|
||||
do
|
||||
{
|
||||
DataTable table = new();
|
||||
@ -351,7 +350,6 @@ namespace Milimoe.FunGame.Server.Services.DataUtility
|
||||
|
||||
ReSet();
|
||||
using SqliteDataReader reader = await command.ExecuteReaderAsync();
|
||||
_dataSet = new();
|
||||
do
|
||||
{
|
||||
DataTable table = new();
|
||||
@ -486,7 +484,7 @@ namespace Milimoe.FunGame.Server.Services.DataUtility
|
||||
_result = SQLResult.NotFound;
|
||||
_affectedRows = 0;
|
||||
_lastInsertId = 0;
|
||||
DataSet.Clear();
|
||||
_dataSet = new();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user