次の方法で共有


IConventionEntityTypeBuilder.HasIndex メソッド

定義

オーバーロード

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 にインデックスが存在する場合は、インデックスの構成に使用できるオブジェクト。それ以外の場合は 。

適用対象