IConventionEntityType.FindKey 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.
Overloads
FindKey(IReadOnlyProperty) |
Gets the primary or alternate key that is defined on the given property. Returns |
FindKey(IReadOnlyList<IProperty>) |
Gets the primary or alternate key that is defined on the given properties.
Returns |
FindKey(IReadOnlyList<IReadOnlyProperty>) |
Gets the primary or alternate key that is defined on the given properties.
Returns |
FindKey(IReadOnlyProperty)
Gets the primary or alternate key that is defined on the given property. Returns null
if no key is defined
for the given property.
public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionKey? FindKey (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
abstract member FindKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IConventionKey
override this.FindKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IConventionKey
Public Overridable Function FindKey (property As IReadOnlyProperty) As IConventionKey
Parameters
- property
- IReadOnlyProperty
The property that the key is defined on.
Returns
The key, or null if none is defined.
Applies to
FindKey(IReadOnlyList<IProperty>)
Gets the primary or alternate key that is defined on the given properties.
Returns null
if no key is defined for the given properties.
public Microsoft.EntityFrameworkCore.Metadata.IConventionKey FindKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties);
abstract member FindKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> Microsoft.EntityFrameworkCore.Metadata.IConventionKey
Public Function FindKey (properties As IReadOnlyList(Of IProperty)) As IConventionKey
Parameters
- properties
- IReadOnlyList<IProperty>
The properties that make up the key.
Returns
The key, or null
if none is defined.
Applies to
FindKey(IReadOnlyList<IReadOnlyProperty>)
Gets the primary or alternate key that is defined on the given properties.
Returns null
if no key is defined for the given properties.
public Microsoft.EntityFrameworkCore.Metadata.IConventionKey? FindKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member FindKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.IConventionKey
Public Function FindKey (properties As IReadOnlyList(Of IReadOnlyProperty)) As IConventionKey
Parameters
- properties
- IReadOnlyList<IReadOnlyProperty>
The properties that make up the key.
Returns
The key, or null
if none is defined.
Applies to
Entity Framework