KeyDiscoveryConvention.DiscoverKeyProperties メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| DiscoverKeyProperties(IConventionEntityType) |
主キーに使用するプロパティを返します。 |
| DiscoverKeyProperties(IConventionEntityType, IEnumerable<IConventionProperty>) |
主キーに使用するプロパティを返します。 |
DiscoverKeyProperties(IConventionEntityType)
主キーに使用するプロパティを返します。
protected virtual System.Collections.Generic.List<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>? DiscoverKeyProperties(Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
abstract member DiscoverKeyProperties : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> System.Collections.Generic.List<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>
override this.DiscoverKeyProperties : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> System.Collections.Generic.List<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>
Protected Overridable Function DiscoverKeyProperties (entityType As IConventionEntityType) As List(Of IConventionProperty)
パラメーター
- entityType
- IConventionEntityType
エンティティ型。
戻り値
主キーに使用するプロパティ。
適用対象
DiscoverKeyProperties(IConventionEntityType, IEnumerable<IConventionProperty>)
主キーに使用するプロパティを返します。
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> DiscoverKeyProperties(Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> candidateProperties);
static member DiscoverKeyProperties : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * seq<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>
Public Shared Function DiscoverKeyProperties (entityType As IConventionEntityType, candidateProperties As IEnumerable(Of IConventionProperty)) As IEnumerable(Of IConventionProperty)
パラメーター
- entityType
- IConventionEntityType
エンティティ型。
- candidateProperties
- IEnumerable<IConventionProperty>
考慮するプロパティ。
戻り値
主キーに使用するプロパティ。