diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index a34749e..2c40309 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -13,7 +13,7 @@ jobs:
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1.8.2
with:
- dotnet-version: '6.0.100-preview.3.21202.5'
+ dotnet-version: '6.0.100-rc.1.21463.6'
- name: Test
run: dotnet test
diff --git a/Directory.Build.props b/Directory.Build.props
index dd6e0be..6e5f5b6 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -3,7 +3,7 @@
latest
true
snupkg
- 9.0
+ 10.0
true
diff --git a/Directory.Packages.props b/Directory.Packages.props
index 1180e0b..265e0a2 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -1,7 +1,7 @@
- 6.0.0-preview.3.21201.2
- 6.0.0-preview.3.21201.4
+ 6.0.0-rc.1.21452.10
+ 6.0.0-rc.1.21451.13
diff --git a/EFCore.NamingConventions.Test/NameRewritingConventionTest.cs b/EFCore.NamingConventions.Test/NameRewritingConventionTest.cs
index e9c4625..8473f93 100644
--- a/EFCore.NamingConventions.Test/NameRewritingConventionTest.cs
+++ b/EFCore.NamingConventions.Test/NameRewritingConventionTest.cs
@@ -9,7 +9,9 @@ using System.Linq;
using EFCore.NamingConventions.Internal;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure;
using Microsoft.EntityFrameworkCore.TestUtilities;
+using Microsoft.Extensions.DependencyInjection;
using Xunit;
namespace EFCore.NamingConventions.Test
@@ -407,7 +409,11 @@ namespace EFCore.NamingConventions.Test
private IModel BuildModel(Action builderAction, CultureInfo culture = null)
{
- var conventionSet = SqliteTestHelpers.Instance.CreateConventionSetBuilder().CreateConventionSet();
+ var conventionSet = SqliteTestHelpers
+ .Instance
+ .CreateContextServices()
+ .GetRequiredService()
+ .CreateConventionSet();
var optionsBuilder = new DbContextOptionsBuilder();
SqliteTestHelpers.Instance.UseProviderOptions(optionsBuilder);
diff --git a/EFCore.NamingConventions/EFCore.NamingConventions.csproj b/EFCore.NamingConventions/EFCore.NamingConventions.csproj
index c69b571..48a7f28 100644
--- a/EFCore.NamingConventions/EFCore.NamingConventions.csproj
+++ b/EFCore.NamingConventions/EFCore.NamingConventions.csproj
@@ -2,7 +2,7 @@
net6.0
- 6.0.0-preview.3
+ 6.0.0-rc.1
true
true
../EFCore.NamingConventions.snk
diff --git a/EFCore.NamingConventions/Internal/NamingConventionsOptionsExtension.cs b/EFCore.NamingConventions/Internal/NamingConventionsOptionsExtension.cs
index dfd9f9a..8c5aab7 100644
--- a/EFCore.NamingConventions/Internal/NamingConventionsOptionsExtension.cs
+++ b/EFCore.NamingConventions/Internal/NamingConventionsOptionsExtension.cs
@@ -124,13 +124,16 @@ namespace EFCore.NamingConventions.Internal
}
}
- public override long GetServiceProviderHashCode()
+ public override int GetServiceProviderHashCode()
{
var hashCode = Extension._namingConvention.GetHashCode();
hashCode = (hashCode * 3) ^ (Extension._culture?.GetHashCode() ?? 0);
return hashCode;
}
+ public override bool ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo other)
+ => true;
+
public override void PopulateDebugInfo(IDictionary debugInfo)
{
debugInfo["Naming:UseNamingConvention"]