Skip to content

Commit f20308a

Browse files
authored
Merge pull request #37102 from dotnet/merge/release/9.0-to-release/10.0
[automated] Merge branch 'release/9.0' => 'release/10.0'
2 parents 351fe72 + 6ec3ff5 commit f20308a

File tree

11 files changed

+33
-20
lines changed

11 files changed

+33
-20
lines changed

Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757
<NoWarn>$(NoWarn.Replace(';1591', ''))</NoWarn>
5858
</PropertyGroup>
5959

60+
<PropertyGroup>
61+
<NuGetAuditLevel>moderate</NuGetAuditLevel>
62+
</PropertyGroup>
63+
6064
<ItemGroup>
6165
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" />
6266
</ItemGroup>

benchmark/Directory.Build.props

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

44
<PropertyGroup>
55
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)..\rulesets\EFCore.test.ruleset</CodeAnalysisRuleSet>
6+
<NuGetAudit>false</NuGetAudit>
67
</PropertyGroup>
78

89
<ItemGroup>

benchmark/EFCore.Sqlite.Benchmarks/EFCore.Sqlite.Benchmarks.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
<ProjectReference Include="..\..\src\EFCore.Sqlite.Core\EFCore.Sqlite.Core.csproj" />
1717
</ItemGroup>
1818

19-
<ItemGroup>
20-
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" />
21-
</ItemGroup>
22-
2319
<ItemGroup>
2420
<None Update="AdventureWorks2014.db">
2521
<CopyToOutputDirectory>Always</CopyToOutputDirectory>

src/ef/ef.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
<Reference Include="Microsoft.CSharp" />
3030
<Reference Include="System.Configuration" />
3131
</ItemGroup>
32+
33+
<PropertyGroup>
34+
<!-- Permit targeting `netcoreapp2.0`, see https://github.com/dotnet/efcore/issues/34654 -->
35+
<NoWarn>$(NoWarn);NU1903</NoWarn>
36+
</PropertyGroup>
37+
38+
<ItemGroup>
39+
<!-- Permit targeting `netcoreapp2.0`, see https://github.com/dotnet/efcore/issues/34654 -->
40+
<NuGetAuditSuppress Include="https://github.com/advisories/GHSA-7mfr-774f-w5r9" />
41+
</ItemGroup>
3242

3343
<ItemGroup>
3444
<None Update="Generators\BundleProgramGenerator.tt">

test/Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<NoWarn>$(NoWarn);CA1707;1591;xUnit1000;xUnit1003;xUnit1004;xUnit1010;xUnit1013;xUnit1026;xUnit2013;xUnit1024</NoWarn>
66
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)..\rulesets\EFCore.test.ruleset</CodeAnalysisRuleSet>
77
<LangVersion>preview</LangVersion>
8+
<DefaultNetCoreTargetFramework>net10.0</DefaultNetCoreTargetFramework>
9+
<NuGetAudit>false</NuGetAudit>
810
</PropertyGroup>
911

1012
</Project>

test/EFCore.Cosmos.FunctionalTests/Query/PrimitiveCollectionsQueryCosmosTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,11 +1370,11 @@ public override async Task Parameter_collection_Concat_column_collection()
13701370

13711371
AssertSql(
13721372
"""
1373-
@ints='[11,111]'
1373+
@p='[11,111]'
13741374
13751375
SELECT VALUE c
13761376
FROM root c
1377-
WHERE (ARRAY_LENGTH(ARRAY_CONCAT(@ints, c["Ints"])) = 2)
1377+
WHERE (ARRAY_LENGTH(ARRAY_CONCAT(@p, c["Ints"])) = 2)
13781378
""");
13791379
}
13801380

test/EFCore.Specification.Tests/Query/NorthwindMiscellaneousQueryTestBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5122,7 +5122,7 @@ public virtual Task Contains_over_concatenated_parameter_and_constant(bool async
51225122

51235123
return AssertQuery(
51245124
async,
5125-
ss => ss.Set<Customer>().Where(c => data.Contains(someVariable + "SomeConstant")));
5125+
ss => ss.Set<Customer>().Where(c => ((IEnumerable<string>)data).Contains(someVariable + "SomeConstant")));
51265126
}
51275127

51285128
[ConditionalTheory, MemberData(nameof(IsAsyncData))]

test/EFCore.Specification.Tests/Query/PrimitiveCollectionsQueryTestBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ public virtual Task Parameter_collection_Concat_column_collection()
794794
{
795795
int[] ints = [11, 111];
796796

797-
return AssertQuery(ss => ss.Set<PrimitiveCollectionsEntity>().Where(c => ints.Concat(c.Ints).Count() == 2));
797+
return AssertQuery(ss => ss.Set<PrimitiveCollectionsEntity>().Where(c => ((IEnumerable<int>)ints).Concat(c.Ints).Count() == 2));
798798
}
799799

800800
[ConditionalFact] // #33582

test/EFCore.SqlServer.FunctionalTests/Query/PrimitiveCollectionsQuerySqlServer160Test.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,19 +1494,19 @@ public override async Task Parameter_collection_Concat_column_collection()
14941494

14951495
AssertSql(
14961496
"""
1497-
@ints1='11'
1498-
@ints2='111'
1497+
@p1='11'
1498+
@p2='111'
14991499
15001500
SELECT [p].[Id], [p].[Bool], [p].[Bools], [p].[DateTime], [p].[DateTimes], [p].[Enum], [p].[Enums], [p].[Int], [p].[Ints], [p].[NullableInt], [p].[NullableInts], [p].[NullableString], [p].[NullableStrings], [p].[NullableWrappedId], [p].[NullableWrappedIdWithNullableComparer], [p].[String], [p].[Strings], [p].[WrappedId]
15011501
FROM [PrimitiveCollectionsEntity] AS [p]
15021502
WHERE (
15031503
SELECT COUNT(*)
15041504
FROM (
15051505
SELECT 1 AS empty
1506-
FROM (VALUES (@ints1), (@ints2)) AS [i]([Value])
1506+
FROM (VALUES (@p1), (@p2)) AS [p0]([Value])
15071507
UNION ALL
15081508
SELECT 1 AS empty
1509-
FROM OPENJSON([p].[Ints]) AS [i0]
1509+
FROM OPENJSON([p].[Ints]) AS [i]
15101510
) AS [u]) = 2
15111511
""");
15121512
}

test/EFCore.SqlServer.FunctionalTests/Query/PrimitiveCollectionsQuerySqlServerTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,19 +1517,19 @@ public override async Task Parameter_collection_Concat_column_collection()
15171517

15181518
AssertSql(
15191519
"""
1520-
@ints1='11'
1521-
@ints2='111'
1520+
@p1='11'
1521+
@p2='111'
15221522
15231523
SELECT [p].[Id], [p].[Bool], [p].[Bools], [p].[DateTime], [p].[DateTimes], [p].[Enum], [p].[Enums], [p].[Int], [p].[Ints], [p].[NullableInt], [p].[NullableInts], [p].[NullableString], [p].[NullableStrings], [p].[NullableWrappedId], [p].[NullableWrappedIdWithNullableComparer], [p].[String], [p].[Strings], [p].[WrappedId]
15241524
FROM [PrimitiveCollectionsEntity] AS [p]
15251525
WHERE (
15261526
SELECT COUNT(*)
15271527
FROM (
15281528
SELECT 1 AS empty
1529-
FROM (VALUES (@ints1), (@ints2)) AS [i]([Value])
1529+
FROM (VALUES (@p1), (@p2)) AS [p0]([Value])
15301530
UNION ALL
15311531
SELECT 1 AS empty
1532-
FROM OPENJSON([p].[Ints]) AS [i0]
1532+
FROM OPENJSON([p].[Ints]) AS [i]
15331533
) AS [u]) = 2
15341534
""");
15351535
}

0 commit comments

Comments
 (0)