SqlServerKeyExtensions.SetIsClustered 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SetIsClustered(IMutableKey, Nullable<Boolean>) |
设置一个值,该值指示键是否聚集。 |
SetIsClustered(IConventionKey, Nullable<Boolean>, Boolean) |
设置一个值,该值指示键是否聚集。 |
SetIsClustered(IMutableKey, Nullable<Boolean>)
设置一个值,该值指示键是否聚集。
public static void SetIsClustered (this Microsoft.EntityFrameworkCore.Metadata.IMutableKey key, bool? clustered);
static member SetIsClustered : Microsoft.EntityFrameworkCore.Metadata.IMutableKey * Nullable<bool> -> unit
<Extension()>
Public Sub SetIsClustered (key As IMutableKey, clustered As Nullable(Of Boolean))
参数
- key
- IMutableKey
键。
适用于
SetIsClustered(IConventionKey, Nullable<Boolean>, Boolean)
设置一个值,该值指示键是否聚集。
public static void SetIsClustered (this Microsoft.EntityFrameworkCore.Metadata.IConventionKey key, bool? clustered, bool fromDataAnnotation = false);
public static bool? SetIsClustered (this Microsoft.EntityFrameworkCore.Metadata.IConventionKey key, bool? clustered, bool fromDataAnnotation = false);
static member SetIsClustered : Microsoft.EntityFrameworkCore.Metadata.IConventionKey * Nullable<bool> * bool -> unit
static member SetIsClustered : Microsoft.EntityFrameworkCore.Metadata.IConventionKey * Nullable<bool> * bool -> Nullable<bool>
<Extension()>
Public Sub SetIsClustered (key As IConventionKey, clustered As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetIsClustered (key As IConventionKey, clustered As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)
参数
- key
- IConventionKey
键。
- fromDataAnnotation
- Boolean
指示配置是否是使用数据注释指定的。
返回
配置的值。