ConventionEntityTypeExtensions.RemoveKey メソッド

定義

このエンティティ型から主キーまたは代替キーを削除します。

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

パラメーター

entityType
IConventionEntityType

エンティティの型。

properties
IReadOnlyList<IConventionProperty>

キーを構成するプロパティ。

戻り値

削除されたキー。

適用対象