Language

OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>.HasIndex メソッド

定義

オーバーロード

Name 説明
HasIndex(Expression<Func<TDependentEntity,Object>>)

指定したプロパティのインデックスを構成します。 特定のプロパティ セットに既存のインデックスがある場合は、構成用に既存のインデックスが返されます。

HasIndex(String[])

指定したプロパティのインデックスを構成します。 特定のプロパティ セットに既存のインデックスがある場合は、構成用に既存のインデックスが返されます。

HasIndex(Expression<Func<TDependentEntity,Object>>, String)

指定した名前を使用して、指定したプロパティのインデックスを構成します。 指定されたプロパティの一覧に、指定された名前の既存のインデックスがある場合は、構成の既存のインデックスが返されます。

HasIndex(String[], String)

指定した名前を使用して、指定したプロパティのインデックスを構成します。 指定されたプロパティの一覧に、指定された名前の既存のインデックスがある場合は、構成の既存のインデックスが返されます。

HasIndex(Expression<Func<TDependentEntity,Object>>)

ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs

指定したプロパティのインデックスを構成します。 特定のプロパティ セットに既存のインデックスがある場合は、構成用に既存のインデックスが返されます。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TDependentEntity> HasIndex(System.Linq.Expressions.Expression<Func<TDependentEntity,object?>> indexExpression);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder HasIndex(System.Linq.Expressions.Expression<Func<TDependentEntity,object>> indexExpression);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> HasIndex(System.Linq.Expressions.Expression<Func<TDependentEntity,object>> indexExpression);
override this.HasIndex : System.Linq.Expressions.Expression<Func<'DependentEntity, obj>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'DependentEntity (requires 'DependentEntity : null)>
override this.HasIndex : System.Linq.Expressions.Expression<Func<'DependentEntity, obj>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
override this.HasIndex : System.Linq.Expressions.Expression<Func<'DependentEntity, obj>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasIndex (indexExpression As Expression(Of Func(Of TDependentEntity, Object))) As IndexBuilder(Of TDependentEntity)
Public Overridable Function HasIndex (indexExpression As Expression(Of Func(Of TDependentEntity, Object))) As IndexBuilder
Public Overridable Function HasIndex (indexExpression As Expression(Of Func(Of TDependentEntity, Object))) As IndexBuilder(Of TEntity)

パラメーター

indexExpression
Expression<Func<TDependentEntity,Object>>

インデックスに含めるプロパティ (blog => blog.Url) を表すラムダ式。

インデックスが複数のプロパティで構成されている場合は、プロパティ (post => new { post.Title, post.BlogId }) を含む匿名型を指定します。

戻り値

IndexBuilder<TDependentEntity>
IndexBuilder<TEntity>

インデックスの構成に使用できるオブジェクト。

適用対象

HasIndex(String[])

ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs

指定したプロパティのインデックスを構成します。 特定のプロパティ セットに既存のインデックスがある場合は、構成用に既存のインデックスが返されます。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TDependentEntity> HasIndex(params string[] propertyNames);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> HasIndex(params string[] propertyNames);
override this.HasIndex : string[] -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'DependentEntity (requires 'DependentEntity : null)>
override this.HasIndex : string[] -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasIndex (ParamArray propertyNames As String()) As IndexBuilder(Of TDependentEntity)
Public Overridable Function HasIndex (ParamArray propertyNames As String()) As IndexBuilder(Of TEntity)

パラメーター

propertyNames
String[]

インデックスを構成するプロパティの名前。

戻り値

IndexBuilder<TDependentEntity>
IndexBuilder<TEntity>

インデックスの構成に使用できるオブジェクト。

適用対象

HasIndex(Expression<Func<TDependentEntity,Object>>, String)

ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs

指定した名前を使用して、指定したプロパティのインデックスを構成します。 指定されたプロパティの一覧に、指定された名前の既存のインデックスがある場合は、構成の既存のインデックスが返されます。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TDependentEntity> HasIndex(System.Linq.Expressions.Expression<Func<TDependentEntity,object?>> indexExpression, string name);
override this.HasIndex : System.Linq.Expressions.Expression<Func<'DependentEntity, obj>> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'DependentEntity (requires 'DependentEntity : null)>
Public Overridable Function HasIndex (indexExpression As Expression(Of Func(Of TDependentEntity, Object)), name As String) As IndexBuilder(Of TDependentEntity)

パラメーター

indexExpression
Expression<Func<TDependentEntity,Object>>

インデックスに含めるプロパティ (blog => blog.Url) を表すラムダ式。

インデックスが複数のプロパティで構成されている場合は、プロパティ (post => new { post.Title, post.BlogId }) を含む匿名型を指定します。

name
String

インデックスに割り当てる名前。

戻り値

IndexBuilder<TDependentEntity>

インデックスの構成に使用できるオブジェクト。

適用対象

HasIndex(String[], String)

ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs
ソース:
OwnedNavigationBuilder`.cs

指定した名前を使用して、指定したプロパティのインデックスを構成します。 指定されたプロパティの一覧に、指定された名前の既存のインデックスがある場合は、構成の既存のインデックスが返されます。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TDependentEntity> HasIndex(string[] propertyNames, string name);
override this.HasIndex : string[] * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'DependentEntity (requires 'DependentEntity : null)>
Public Overridable Function HasIndex (propertyNames As String(), name As String) As IndexBuilder(Of TDependentEntity)

パラメーター

propertyNames
String[]

インデックスを構成するプロパティの名前。

name
String

インデックスに割り当てる名前。

戻り値

IndexBuilder<TDependentEntity>

インデックスの構成に使用できるオブジェクト。

適用対象