Skip to content

Commit

Permalink
Merge branch 'release/5.0-preview8' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcvickers committed Jul 25, 2020
2 parents ec01092 + ea25000 commit 011d0dc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 30 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/EFCore/Metadata/INavigation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ bool IsOnDependent
{
[DebuggerStepThrough]
get => ForeignKey.DependentToPrincipal == this;
}
}

/// <summary>
/// Gets a value indicating whether the navigation property is a collection property.
Expand All @@ -76,6 +76,7 @@ bool INavigationBase.IsCollection
/// </summary>
/// <returns> The accessor. </returns>
[DebuggerStepThrough]
IClrCollectionAccessor INavigationBase.GetCollectionAccessor() => new ClrCollectionAccessorFactory().Create(this);
IClrCollectionAccessor INavigationBase.GetCollectionAccessor()
=> ((Navigation)this).CollectionAccessor;
}
}
2 changes: 1 addition & 1 deletion src/EFCore/Metadata/ISkipNavigation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ INavigationBase INavigationBase.Inverse
/// </summary>
/// <returns> The accessor. </returns>
IClrCollectionAccessor INavigationBase.GetCollectionAccessor()
=> new ClrCollectionAccessorFactory().Create(this);
=> ((SkipNavigation)this).CollectionAccessor;
}
}
27 changes: 0 additions & 27 deletions src/EFCore/Metadata/Internal/NavigationBaseExtensions.cs

This file was deleted.

0 comments on commit 011d0dc

Please sign in to comment.