SqlServerIndexExtensions.SetIncludeProperties 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SetIncludeProperties(IMutableIndex, IReadOnlyList<String>) |
設定包含的屬性名稱。 |
SetIncludeProperties(IConventionIndex, IReadOnlyList<String>, Boolean) |
設定包含的屬性名稱。 |
SetIncludeProperties(IMutableIndex, IReadOnlyList<String>)
設定包含的屬性名稱。
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))
參數
- index
- IMutableIndex
索引。
- properties
- IReadOnlyList<String>
要設定的值。
適用於
SetIncludeProperties(IConventionIndex, IReadOnlyList<String>, Boolean)
設定包含的屬性名稱。
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)
參數
- index
- IConventionIndex
索引。
- properties
- IReadOnlyList<String>
要設定的值。
- fromDataAnnotation
- Boolean
指出是否使用資料批註來指定組態。
傳回
已設定的屬性名稱。