Bagikan melalui


SqlServerIndexExtensions.SetIncludeProperties Metode

Definisi

Overload

SetIncludeProperties(IMutableIndex, IReadOnlyList<String>)

Set menyertakan nama properti.

SetIncludeProperties(IConventionIndex, IReadOnlyList<String>, Boolean)

Set menyertakan nama properti.

SetIncludeProperties(IMutableIndex, IReadOnlyList<String>)

Set menyertakan nama properti.

public static void SetIncludeProperties (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, System.Collections.Generic.IReadOnlyList<string> properties);
static member SetIncludeProperties : Microsoft.EntityFrameworkCore.Metadata.IMutableIndex * System.Collections.Generic.IReadOnlyList<string> -> unit
<Extension()>
Public Sub SetIncludeProperties (index As IMutableIndex, properties As IReadOnlyList(Of String))

Parameter

index
IMutableIndex

Indeks.

properties
IReadOnlyList<String>

Nilai yang akan ditetapkan.

Berlaku untuk

SetIncludeProperties(IConventionIndex, IReadOnlyList<String>, Boolean)

Set menyertakan nama properti.

public static void SetIncludeProperties (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, System.Collections.Generic.IReadOnlyList<string> properties, bool fromDataAnnotation = false);
public static System.Collections.Generic.IReadOnlyList<string> SetIncludeProperties (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, System.Collections.Generic.IReadOnlyList<string> properties, bool fromDataAnnotation = false);
public static System.Collections.Generic.IReadOnlyList<string>? SetIncludeProperties (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, System.Collections.Generic.IReadOnlyList<string>? properties, bool fromDataAnnotation = false);
static member SetIncludeProperties : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex * System.Collections.Generic.IReadOnlyList<string> * bool -> unit
static member SetIncludeProperties : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex * System.Collections.Generic.IReadOnlyList<string> * bool -> System.Collections.Generic.IReadOnlyList<string>
<Extension()>
Public Sub SetIncludeProperties (index As IConventionIndex, properties As IReadOnlyList(Of String), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetIncludeProperties (index As IConventionIndex, properties As IReadOnlyList(Of String), Optional fromDataAnnotation As Boolean = false) As IReadOnlyList(Of String)

Parameter

index
IConventionIndex

Indeks.

properties
IReadOnlyList<String>

Nilai yang akan ditetapkan.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

Nama properti yang dikonfigurasi.

Berlaku untuk