File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed
EFCore.Jet.FunctionalTests/Query Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 1111using Xunit . Abstractions ;
1212using Microsoft . EntityFrameworkCore ;
1313using Xunit ;
14+ using Microsoft . EntityFrameworkCore . TestModels . ConcurrencyModel ;
1415#nullable disable
1516namespace 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}" ;
You can’t perform that action at this time.
0 commit comments