Share via


IMutableEntityType.SetPrimaryKey メソッド

定義

オーバーロード

SetPrimaryKey(IMutableProperty)

このエンティティ型の主キーを設定します。

SetPrimaryKey(IReadOnlyList<IMutableProperty>)

このエンティティ型の主キーを設定します。

SetPrimaryKey(IMutableProperty)

このエンティティ型の主キーを設定します。

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

パラメーター

property
IMutableProperty

主キー プロパティ。

戻り値

新しく作成されたキー。

適用対象

SetPrimaryKey(IReadOnlyList<IMutableProperty>)

このエンティティ型の主キーを設定します。

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

パラメーター

properties
IReadOnlyList<IMutableProperty>

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

戻り値

新しく作成されたキー。

適用対象