Skip to content

Commit 6c38bf5

Browse files
author
Bart Koelman
committed
Updated dependencies to build against the latest version of .NET 5
1 parent 6dd339f commit 6c38bf5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Directory.Build.props

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<Project>
22
<PropertyGroup>
3-
<NetCoreAppVersion>netcoreapp3.1</NetCoreAppVersion>
4-
<AspNetCoreVersion>3.1.*</AspNetCoreVersion>
5-
<EFCoreVersion>3.1.*</EFCoreVersion>
6-
<NpgsqlPostgreSQLVersion>3.1.*</NpgsqlPostgreSQLVersion>
3+
<NetCoreAppVersion>net5.0</NetCoreAppVersion>
4+
<AspNetCoreVersion>5.0.*</AspNetCoreVersion>
5+
<EFCoreVersion>5.0.*</EFCoreVersion>
6+
<NpgsqlPostgreSQLVersion>5.0.*</NpgsqlPostgreSQLVersion>
77
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)CodingGuidelines.ruleset</CodeAnalysisRuleSet>
88
</PropertyGroup>
99

src/JsonApiDotNetCore/Configuration/InverseNavigationResolver.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private void ResolveRelationships(IReadOnlyCollection<RelationshipAttribute> rel
5252
{
5353
if (!(relationship is HasManyThroughAttribute))
5454
{
55-
INavigation inverseNavigation = entityType.FindNavigation(relationship.Property.Name)?.FindInverse();
55+
INavigation inverseNavigation = entityType.FindNavigation(relationship.Property.Name)?.Inverse;
5656
relationship.InverseNavigationProperty = inverseNavigation?.PropertyInfo;
5757
}
5858
}

src/JsonApiDotNetCore/JsonApiDotNetCore.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<ItemGroup>
2424
<PackageReference Include="Ben.Demystifier" Version="0.4.1" />
2525
<PackageReference Include="Humanizer" Version="2.11.10" />
26-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.0" />
27-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.0" />
26+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="$(EFCoreVersion)" />
27+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="$(EFCoreVersion)" />
2828
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
2929
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
3030
<PackageReference Include="SauceControl.InheritDoc" Version="1.3.0" PrivateAssets="All" />

src/JsonApiDotNetCore/Repositories/EntityFrameworkCoreRepository.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ private bool HasForeignKeyAtLeftSide(RelationshipAttribute relationship)
374374
if (relationship is HasOneAttribute)
375375
{
376376
INavigation navigation = TryGetNavigation(relationship);
377-
return navigation?.IsDependentToPrincipal() ?? false;
377+
return navigation?.IsOnDependent ?? false;
378378
}
379379

380380
return false;

0 commit comments

Comments
 (0)