File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
<Project >
2
2
<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 >
7
7
<CodeAnalysisRuleSet >$(MSBuildThisFileDirectory)CodingGuidelines.ruleset</CodeAnalysisRuleSet >
8
8
</PropertyGroup >
9
9
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ private void ResolveRelationships(IReadOnlyCollection<RelationshipAttribute> rel
52
52
{
53
53
if ( ! ( relationship is HasManyThroughAttribute ) )
54
54
{
55
- INavigation inverseNavigation = entityType . FindNavigation ( relationship . Property . Name ) ? . FindInverse ( ) ;
55
+ INavigation inverseNavigation = entityType . FindNavigation ( relationship . Property . Name ) ? . Inverse ;
56
56
relationship . InverseNavigationProperty = inverseNavigation ? . PropertyInfo ;
57
57
}
58
58
}
Original file line number Diff line number Diff line change 23
23
<ItemGroup >
24
24
<PackageReference Include =" Ben.Demystifier" Version =" 0.4.1" />
25
25
<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) " />
28
28
<PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.0.0" PrivateAssets =" All" />
29
29
<PackageReference Include =" Newtonsoft.Json" Version =" 13.0.1" />
30
30
<PackageReference Include =" SauceControl.InheritDoc" Version =" 1.3.0" PrivateAssets =" All" />
Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ private bool HasForeignKeyAtLeftSide(RelationshipAttribute relationship)
374
374
if ( relationship is HasOneAttribute )
375
375
{
376
376
INavigation navigation = TryGetNavigation ( relationship ) ;
377
- return navigation ? . IsDependentToPrincipal ( ) ?? false ;
377
+ return navigation ? . IsOnDependent ?? false ;
378
378
}
379
379
380
380
return false ;
You can’t perform that action at this time.
0 commit comments