SqlServerIndexBuilderExtensions.ForSqlServerInclude Methode

Definition

Überlädt

ForSqlServerInclude(IndexBuilder, String[])
Veraltet.

Konfiguriert index include properties when targeting SQL Server.

ForSqlServerInclude(IConventionIndexBuilder, IReadOnlyList<String>, Boolean)
Veraltet.

Konfiguriert index include properties when targeting SQL Server.

ForSqlServerInclude<TEntity>(IndexBuilder<TEntity>, Expression<Func<TEntity,Object>>)
Veraltet.

Konfiguriert index include properties when targeting SQL Server.

ForSqlServerInclude(IndexBuilder, String[])

Achtung

Use IncludeProperties

Konfiguriert index include properties when targeting SQL Server.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder ForSqlServerInclude (this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder indexBuilder, params string[] propertyNames);
[System.Obsolete("Use IncludeProperties")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder ForSqlServerInclude (this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder indexBuilder, params string[] propertyNames);
static member ForSqlServerInclude : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder * string[] -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
[<System.Obsolete("Use IncludeProperties")>]
static member ForSqlServerInclude : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder * string[] -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
<Extension()>
Public Function ForSqlServerInclude (indexBuilder As IndexBuilder, ParamArray propertyNames As String()) As IndexBuilder

Parameter

indexBuilder
IndexBuilder

Der Generator für den index, der konfiguriert wird.

propertyNames
String[]

Ein Array von Eigenschaftennamen, die in der Include-Klausel verwendet werden sollen.

Gibt zurück

Ein Generator zum weiteren Konfigurieren des Indexes.

Attribute

Gilt für:

ForSqlServerInclude(IConventionIndexBuilder, IReadOnlyList<String>, Boolean)

Achtung

Use IncludeProperties

Konfiguriert index include properties when targeting SQL Server.

[System.Obsolete("Use IncludeProperties")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder ForSqlServerInclude (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder indexBuilder, System.Collections.Generic.IReadOnlyList<string> propertyNames, bool fromDataAnnotation = false);
[<System.Obsolete("Use IncludeProperties")>]
static member ForSqlServerInclude : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder * System.Collections.Generic.IReadOnlyList<string> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder
<Extension()>
Public Function ForSqlServerInclude (indexBuilder As IConventionIndexBuilder, propertyNames As IReadOnlyList(Of String), Optional fromDataAnnotation As Boolean = false) As IConventionIndexBuilder

Parameter

indexBuilder
IConventionIndexBuilder

Der Generator für den index, der konfiguriert wird.

propertyNames
IReadOnlyList<String>

Ein Array von Eigenschaftennamen, die in der Include-Klausel verwendet werden sollen.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Derselbe Generator instance, wenn die Konfiguration angewendet wurde, andernfallsnull.

Attribute

Gilt für:

ForSqlServerInclude<TEntity>(IndexBuilder<TEntity>, Expression<Func<TEntity,Object>>)

Achtung

Use IncludeProperties

Konfiguriert index include properties when targeting SQL Server.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> ForSqlServerInclude<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> indexBuilder, System.Linq.Expressions.Expression<Func<TEntity,object>> includeExpression);
[System.Obsolete("Use IncludeProperties")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> ForSqlServerInclude<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> indexBuilder, System.Linq.Expressions.Expression<Func<TEntity,object>> includeExpression);
static member ForSqlServerInclude : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity> * System.Linq.Expressions.Expression<Func<'Entity, obj>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity>
[<System.Obsolete("Use IncludeProperties")>]
static member ForSqlServerInclude : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity> * System.Linq.Expressions.Expression<Func<'Entity, obj>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity>
<Extension()>
Public Function ForSqlServerInclude(Of TEntity) (indexBuilder As IndexBuilder(Of TEntity), includeExpression As Expression(Of Func(Of TEntity, Object))) As IndexBuilder(Of TEntity)

Typparameter

TEntity

Parameter

indexBuilder
IndexBuilder<TEntity>

Der Generator für den index, der konfiguriert wird.

includeExpression
Expression<Func<TEntity,Object>>

Ein Lambdaausdruck, der die Eigenschaft(n) darstellt, die in die Include-Klausel (blog => blog.Url) aufgenommen werden sollen.

Wenn mehrere Eigenschaften eingeschlossen werden sollen, geben Sie einen anonymen Typ einschließlich der Eigenschaften (post => new { post.Title, post.BlogId }) an.

Gibt zurück

IndexBuilder<TEntity>

Ein Generator zum weiteren Konfigurieren des Indexes.

Attribute

Gilt für: