diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index fd30924..d1f5722 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -12,7 +12,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x include-prerelease: true - name: Build with dotnet run: dotnet build "./src/SimplerSoftware.EntityFrameworkCore.SqlServer.NodaTime.sln" --configuration Release diff --git a/src/SimplerSoftware.EntityFrameworkCore.SqlServer.NodaTime/Storage/SqlServerNodaTimeTypeMappingSourcePlugin.cs b/src/SimplerSoftware.EntityFrameworkCore.SqlServer.NodaTime/Storage/SqlServerNodaTimeTypeMappingSourcePlugin.cs index a062b5c..4759045 100644 --- a/src/SimplerSoftware.EntityFrameworkCore.SqlServer.NodaTime/Storage/SqlServerNodaTimeTypeMappingSourcePlugin.cs +++ b/src/SimplerSoftware.EntityFrameworkCore.SqlServer.NodaTime/Storage/SqlServerNodaTimeTypeMappingSourcePlugin.cs @@ -50,7 +50,7 @@ public SqlServerNodaTimeTypeMappingSourcePlugin() this.AddTypeMappingToDictionaries(this._durationTypeMapping); } - public virtual RelationalTypeMapping FindMapping(in RelationalTypeMappingInfo mappingInfo) + public RelationalTypeMapping FindMapping(in RelationalTypeMappingInfo mappingInfo) { var clrType = mappingInfo.ClrType; var storeTypeName = mappingInfo.StoreTypeName; @@ -88,7 +88,7 @@ public virtual RelationalTypeMapping FindMapping(in RelationalTypeMappingInfo ma // TODO: Cache size/precision/scale mappings? return mappingInfo.Precision.HasValue && _hasPrecisionTypes.Contains(mapping.ClrType) - ? mapping.Clone(mappingInfo, null) + ? mapping.Clone(mappingInfo) : mapping; }