Skip to content

Commit

Permalink
Update to .NET 8 GA
Browse files Browse the repository at this point in the history
  • Loading branch information
bricelam committed Nov 15, 2023
1 parent a3c6c55 commit e02dca2
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.100-preview.2.23157.25
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
<AssemblyName>EntityFrameworkCore.InMemory.HierarchyId.Test</AssemblyName>
<RootNamespace>Microsoft.EntityFrameworkCore.InMemory</RootNamespace>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>EntityFrameworkCore.InMemory.HierarchyId</AssemblyName>
<RootNamespace>Microsoft.EntityFrameworkCore.InMemory</RootNamespace>
<Authors>Adrian Paul Nutiu</Authors>
Expand All @@ -21,8 +21,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.0-preview.2.23128.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.Abstractions" Version="8.0.0-preview.2.23128.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="all" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System;
using Microsoft.EntityFrameworkCore.ChangeTracking;
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.EntityFrameworkCore.Storage.Json;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;

namespace Microsoft.EntityFrameworkCore.InMemory.Storage
Expand All @@ -16,7 +18,21 @@ private InMemoryHierarchyIdTypeMapping(CoreTypeMappingParameters parameters)
{
}

public override CoreTypeMapping Clone(ValueConverter converter)
=> new InMemoryHierarchyIdTypeMapping(Parameters.WithComposedConverter(converter));
public override CoreTypeMapping WithComposedConverter(
ValueConverter converter,
ValueComparer comparer = null,
ValueComparer keyComparer = null,
CoreTypeMapping elementMapping = null,
JsonValueReaderWriter jsonValueReaderWriter = null)
=> new InMemoryHierarchyIdTypeMapping(
Parameters.WithComposedConverter(
converter,
comparer,
keyComparer,
elementMapping,
jsonValueReaderWriter));

protected override CoreTypeMapping Clone(CoreTypeMappingParameters parameters)
=> new InMemoryHierarchyIdTypeMapping(parameters);
}
}
1 change: 0 additions & 1 deletion NuGet.Config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="dotnet8" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources>
<clear />
Expand Down

0 comments on commit e02dca2

Please sign in to comment.