ConventionEntityTypeExtensions.RemoveKey Method

Definition

Removes a primary or alternate key from this entity type.

public static Microsoft.EntityFrameworkCore.Metadata.IConventionKey RemoveKey (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties);
static member RemoveKey : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> -> Microsoft.EntityFrameworkCore.Metadata.IConventionKey
<Extension()>
Public Function RemoveKey (entityType As IConventionEntityType, properties As IReadOnlyList(Of IConventionProperty)) As IConventionKey

Parameters

entityType
IConventionEntityType

The entity type.

properties
IReadOnlyList<IConventionProperty>

The properties that make up the key.

Returns

The key that was removed.

Applies to