次の方法で共有


IMutableEntityType.AddKey メソッド

定義

オーバーロード

AddKey(IMutableProperty)

このエンティティ型に新しい代替キーを追加します。

AddKey(IReadOnlyList<IMutableProperty>)

このエンティティ型に新しい代替キーを追加します。

AddKey(IMutableProperty)

このエンティティ型に新しい代替キーを追加します。

public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableKey AddKey (Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
abstract member AddKey : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
override this.AddKey : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Overridable Function AddKey (property As IMutableProperty) As IMutableKey

パラメーター

property
IMutableProperty

代替キーとして使用する プロパティ。

戻り値

新しく作成されたキー。

適用対象

AddKey(IReadOnlyList<IMutableProperty>)

このエンティティ型に新しい代替キーを追加します。

public Microsoft.EntityFrameworkCore.Metadata.IMutableKey AddKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties);
abstract member AddKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Function AddKey (properties As IReadOnlyList(Of IMutableProperty)) As IMutableKey

パラメーター

properties
IReadOnlyList<IMutableProperty>

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

戻り値

新しく作成されたキー。

適用対象