IConventionEntityTypeBuilder.CanSetPrimaryKey メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
CanSetPrimaryKey(IReadOnlyList<IConventionProperty>, Boolean) |
指定したプロパティをこのエンティティ型の主キーとして設定できるかどうかを示す値を返します。 |
CanSetPrimaryKey(IReadOnlyList<String>, Boolean) |
指定したプロパティをこのエンティティ型の主キーとして設定できるかどうかを示す値を返します。 |
CanSetPrimaryKey(IReadOnlyList<IConventionProperty>, Boolean)
指定したプロパティをこのエンティティ型の主キーとして設定できるかどうかを示す値を返します。
public bool CanSetPrimaryKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, bool fromDataAnnotation = false);
public bool CanSetPrimaryKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>? properties, bool fromDataAnnotation = false);
abstract member CanSetPrimaryKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool -> bool
Public Function CanSetPrimaryKey (properties As IReadOnlyList(Of IConventionProperty), Optional fromDataAnnotation As Boolean = false) As Boolean
パラメーター
- properties
- IReadOnlyList<IConventionProperty>
主キーを構成するプロパティ。
- fromDataAnnotation
- Boolean
構成がデータ注釈を使用して指定されたかどうかを示します。
戻り値
true
指定されたプロパティを主キーとして設定できる場合は 。
適用対象
CanSetPrimaryKey(IReadOnlyList<String>, Boolean)
指定したプロパティをこのエンティティ型の主キーとして設定できるかどうかを示す値を返します。
public bool CanSetPrimaryKey (System.Collections.Generic.IReadOnlyList<string> propertyNames, bool fromDataAnnotation = false);
abstract member CanSetPrimaryKey : System.Collections.Generic.IReadOnlyList<string> * bool -> bool
Public Function CanSetPrimaryKey (propertyNames As IReadOnlyList(Of String), Optional fromDataAnnotation As Boolean = false) As Boolean
パラメーター
- propertyNames
- IReadOnlyList<String>
インデックスを構成するプロパティの名前。
- fromDataAnnotation
- Boolean
構成がデータ注釈を使用して指定されたかどうかを示します。
戻り値
true
指定されたプロパティを主キーとして設定できる場合は 。
適用対象
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示