Share via


RelationalTypeMapper.RequiresKeyMapping(IProperty) Method

Definition

Gets a value indicating whether the given property should use a database type that is suitable for key properties.

protected virtual bool RequiresKeyMapping (Microsoft.EntityFrameworkCore.Metadata.IProperty property);
abstract member RequiresKeyMapping : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
override this.RequiresKeyMapping : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
Protected Overridable Function RequiresKeyMapping (property As IProperty) As Boolean

Parameters

property
IProperty

The property to get the mapping for.

Returns

True if the property is a key, otherwise false.

Applies to