Skip to content

Commit da3ca54

Browse files
committed
Updated NuGet packages. Switched to newer params features.
1 parent 14eb33b commit da3ca54

5 files changed

Lines changed: 4 additions & 10 deletions

File tree

Example/Example.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.2" />
12+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.3" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

SqlServerSimulator.Tests.EFCore/SqlServerSimulator.Tests.EFCore.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
</ItemGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.2" />
24-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.2" />
23+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.3" />
2524
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
2625
<PackageReference Include="MSTest.TestAdapter" Version="3.8.2" />
2726
<PackageReference Include="MSTest.TestFramework" Version="3.8.2" />

SqlServerSimulator.Tests/Extensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static DbCommand CreateCommand(this DbConnection connection, string? comm
1616
return command;
1717
}
1818

19-
public static DbCommand CreateCommand(this DbConnection connection, string? commandText, params (string Name, object Value)[] parameters)
19+
public static DbCommand CreateCommand(this DbConnection connection, string? commandText, params ReadOnlySpan<(string Name, object Value)> parameters)
2020
{
2121
var command = connection.CreateCommand();
2222
command.CommandText = commandText;

SqlServerSimulator/SimulatedResultSet.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ sealed class SimulatedResultSet(Dictionary<string, int> columnIndexes, IEnumerab
1010
.OrderBy(kv => kv.Value)
1111
.Select(kv => kv.Key)];
1212

13-
public SimulatedResultSet(Dictionary<string, int> columnIndexes, params object?[][] records)
14-
: this(columnIndexes, (IEnumerable<object?[]>)records)
15-
{
16-
}
17-
1813
public IEnumerator<object?[]> GetEnumerator() => this.records.GetEnumerator();
1914

2015
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();

SqlServerSimulator/SimulatedSqlException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ internal SimulatedSqlException(string message, int number, byte @class, byte sta
2323
{
2424
}
2525

26-
internal SimulatedSqlException(string? message, params SimulatedSqlError[] errors)
26+
internal SimulatedSqlException(string? message, params ReadOnlySpan<SimulatedSqlError> errors)
2727
: base(message ?? "Simulated exception with no message.")
2828
{
2929
base.HResult = unchecked((int)0x80131904);

0 commit comments

Comments
 (0)