TypeBaseExtensions.GetNavigationAccessMode(ITypeBase) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the PropertyAccessMode being used for navigations of this type.
Note that individual navigations can override this access mode. The value returned here will be used for any navigation for which no override has been specified.
public static Microsoft.EntityFrameworkCore.PropertyAccessMode? GetNavigationAccessMode (this Microsoft.EntityFrameworkCore.Metadata.ITypeBase typeBase);
public static Microsoft.EntityFrameworkCore.PropertyAccessMode GetNavigationAccessMode (this Microsoft.EntityFrameworkCore.Metadata.ITypeBase typeBase);
static member GetNavigationAccessMode : Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode>
static member GetNavigationAccessMode : Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> Microsoft.EntityFrameworkCore.PropertyAccessMode
<Extension()>
Public Function GetNavigationAccessMode (typeBase As ITypeBase) As Nullable(Of PropertyAccessMode)
<Extension()>
Public Function GetNavigationAccessMode (typeBase As ITypeBase) As PropertyAccessMode
Parameters
- typeBase
- ITypeBase
The type for which to get the access mode.
Returns
The access mode being used, or null if the default access mode is being used.
Applies to
Entity Framework