Skip to content

Commit 3839d4b

Browse files
committed
Small fixes
1 parent bf94f6e commit 3839d4b

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<Company>CirrusRed</Company>
99
<Copyright>Copyright © 2017-$([System.DateTime]::Now.Year) CirrusRed</Copyright>
1010
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
11-
<LangVersion>12.0</LangVersion>
11+
<LangVersion>13.0</LangVersion>
1212
<Nullable>enable</Nullable>
1313
<DebugType>portable</DebugType>
1414
<IsPackable>False</IsPackable>

test/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<PropertyGroup>
55
<NoWarn>$(NoWarn);CA1707;1591;xUnit1000;xUnit1003;xUnit1004;xUnit1010;xUnit1013;xUnit1026;xUnit2013;xUnit1024;NU1903;EF1001</NoWarn>
6-
<LangVersion>preview</LangVersion>
6+
<LangVersion>13.0</LangVersion>
77
<DefaultNetCoreTargetFramework>net9.0</DefaultNetCoreTargetFramework>
88
<!-- TODO: Change to "'$(FixedTestOrder)' != 'true'" once test suite is stable. -->
99
<DefineConstants Condition="'$(FixedTestOrder)' != 'false'">$(DefineConstants);FIXED_TEST_ORDER</DefineConstants>

test/EFCore.Jet.FunctionalTests/Query/SqlExecutorJetTest.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using Xunit.Abstractions;
1212
using Microsoft.EntityFrameworkCore;
1313
using Xunit;
14+
using Microsoft.EntityFrameworkCore.TestModels.ConcurrencyModel;
1415
#nullable disable
1516
namespace EntityFrameworkCore.Jet.FunctionalTests.Query
1617
{
@@ -264,6 +265,22 @@ public override async Task Query_with_DbParameters_interpolated_2(bool async)
264265
Assert.Equal(-1, actual);
265266
}
266267

268+
public override async Task Query_with_parameters_custom_converter(bool async)
269+
{
270+
var city = new City { Name = "London" };
271+
var contactTitle = "Sales Representative";
272+
273+
using var context = CreateContext();
274+
275+
var actual = async
276+
? await context.Database.ExecuteSqlAsync(
277+
$@"SELECT COUNT(*) FROM `Customers` WHERE `City` = {city} AND `ContactTitle` = {contactTitle}")
278+
: context.Database.ExecuteSql(
279+
$@"SELECT COUNT(*) FROM `Customers` WHERE `City` = {city} AND `ContactTitle` = {contactTitle}");
280+
281+
Assert.Equal(-1, actual);
282+
}
283+
267284
protected override string TenMostExpensiveProductsSproc => "EXEC `Ten Most Expensive Products`";
268285
protected override string CustomerOrderHistorySproc => "EXEC `CustOrderHist` CustomerID";
269286
protected override string CustomerOrderHistoryWithGeneratedParameterSproc => "EXEC `CustOrderHist` CustomerID = {0}";

0 commit comments

Comments
 (0)