This is an automated email from the ASF dual-hosted git repository. ptupitsyn pushed a commit to branch ignite-22133-bak in repository https://gitbox.apache.org/repos/asf/ignite-3.git
commit 63a7fbf6734b4df26a942d8425cefe190a19d33b Author: Pavel Tupitsyn <[email protected]> AuthorDate: Fri Jun 27 14:37:00 2025 +0300 Revert "wip" This reverts commit 9326a03d8fe82525fe85d5f02c46dc596e1e8d36. --- .../Apache.Ignite.EntityFrameworkCore.Tests/BasicTest.cs | 13 +++++++++++++ .../DataCommon/IgniteCommand.cs | 9 +++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.Tests/BasicTest.cs b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.Tests/BasicTest.cs index 53bfb6721f2..8d6207cc02c 100644 --- a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.Tests/BasicTest.cs +++ b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.Tests/BasicTest.cs @@ -24,6 +24,19 @@ using NUnit.Framework; public class BasicTest { + [SetUp] + public async Task SetUp() + { + using var client = await IgniteClient.StartAsync(new(GetIgniteEndpoint())); + + var tables = await client.Tables.GetTablesAsync(); + + foreach (var table in tables) + { + await client.Sql.ExecuteAsync(null, $"DROP TABLE \"{table.Name}\""); + } + } + [Test] public async Task TestIgniteEfCore() { diff --git a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore/DataCommon/IgniteCommand.cs b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore/DataCommon/IgniteCommand.cs index 05baf3dca2e..237d7dc7e60 100644 --- a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore/DataCommon/IgniteCommand.cs +++ b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore/DataCommon/IgniteCommand.cs @@ -65,18 +65,15 @@ public class IgniteCommand : DbCommand public override async Task<int> ExecuteNonQueryAsync(CancellationToken cancellationToken) { - var args = _parameters?.ToObjectArray() ?? []; + var args = _parameters?.ToObjectArray() ?? Array.Empty<object>(); // TODO: Remove debug output. - var statement = new SqlStatement(CommandText); - - Console.WriteLine($"IgniteCommand.ExecuteNonQueryAsync [statement={statement}, parameters={string.Join(", ", args)}]"); + Console.WriteLine($"IgniteCommand.ExecuteNonQueryAsync [statement={CommandText}, parameters={string.Join(", ", args)}]"); // TODO: Propagate transaction somehow. await using IResultSet<object> resultSet = await Sql.ExecuteAsync<object>( transaction: null, - statement, - cancellationToken, + CommandText, args); Debug.Assert(!resultSet.HasRowSet, "!resultSet.HasRowSet");
