Dil

SqlServerIndexBuilderExtensions.ForSqlServerInclude Yöntem

Tanım

Aşırı Yüklemeler

Veri Akışı Adı Description
ForSqlServerInclude(IndexBuilder, String[])
Geçersiz.

SQL Server hedeflerken dizin ekleme özelliklerini yapılandırıyor.

ForSqlServerInclude(IConventionIndexBuilder, IReadOnlyList<String>, Boolean)
Geçersiz.

SQL Server hedeflerken dizin ekleme özelliklerini yapılandırıyor.

ForSqlServerInclude<TEntity>(IndexBuilder<TEntity>, Expression<Func<TEntity,Object>>)
Geçersiz.

SQL Server hedeflerken dizin ekleme özelliklerini yapılandırıyor.

ForSqlServerInclude(IndexBuilder, String[])

Kaynak:
SqlServerIndexBuilderExtensions.cs
Kaynak:
SqlServerIndexBuilderExtensions.cs
Kaynak:
SqlServerIndexBuilderExtensions.cs

Dikkat

Use IncludeProperties

SQL Server hedeflerken dizin ekleme özelliklerini yapılandırıyor.

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

Parametreler

indexBuilder
IndexBuilder

Yapılandırılan dizinin oluşturucusu.

propertyNames
String[]

'include' yan tümcesinde kullanılacak özellik adları dizisi.

Döndürülenler

Dizini daha fazla yapılandırmak için bir oluşturucu.

Özellikler

Şunlara uygulanır

ForSqlServerInclude(IConventionIndexBuilder, IReadOnlyList<String>, Boolean)

Kaynak:
SqlServerIndexBuilderExtensions.cs
Kaynak:
SqlServerIndexBuilderExtensions.cs

Dikkat

Use IncludeProperties

SQL Server hedeflerken dizin ekleme özelliklerini yapılandırıyor.

[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

Parametreler

indexBuilder
IConventionIndexBuilder

Yapılandırılan dizinin oluşturucusu.

propertyNames
IReadOnlyList<String>

'include' yan tümcesinde kullanılacak özellik adları dizisi.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmedidiğini gösterir.

Döndürülenler

Yapılandırma uygulandıysa aynı oluşturucu örneği, null aksi takdirde.

Özellikler

Şunlara uygulanır

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

Kaynak:
SqlServerIndexBuilderExtensions.cs
Kaynak:
SqlServerIndexBuilderExtensions.cs
Kaynak:
SqlServerIndexBuilderExtensions.cs

Dikkat

Use IncludeProperties

SQL Server hedeflerken dizin ekleme özelliklerini yapılandırıyor.

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)

Tür Parametreleri

TEntity

Parametreler

indexBuilder
IndexBuilder<TEntity>

Yapılandırılan dizinin oluşturucusu.

includeExpression
Expression<Func<TEntity,Object>>

'include' yan tümcesine (blog => blog.Url) dahil edilecek özellikleri temsil eden lambda ifadesi.

Birden çok özellik dahil edilecekse, özellikleri (post => new { post.Title, post.BlogId } dahil olmak üzere anonim bir tür belirtin.

Döndürülenler

IndexBuilder<TEntity>

Dizini daha fazla yapılandırmak için bir oluşturucu.

Özellikler

Şunlara uygulanır