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