SqlServerIndexBuilderExtensions.ForSqlServerInclude Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| 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 zu konfigurierenden Index.
- propertyNames
- String[]
Ein Array von Eigenschaftsnamen, das in der Include-Klausel verwendet werden soll.
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 zu konfigurierenden Index.
- propertyNames
- IReadOnlyList<String>
Ein Array von Eigenschaftsnamen, das in der Include-Klausel verwendet werden soll.
- fromDataAnnotation
- Boolean
Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.
Gibt zurück
Die gleiche Generatorinstanz, wenn die Konfiguration angewendet wurde, null andernfalls.
- 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 zu konfigurierenden Index.
- includeExpression
- Expression<Func<TEntity,Object>>
Ein Lambda-Ausdruck, der die Eigenschaft(en) darstellt, die in die Klausel "include" (blog => blog.Url) aufgenommen werden soll.
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
Ein Generator zum weiteren Konfigurieren des Indexes.
- Attribute