SqlServerKeyBuilderExtensions.ForSqlServerIsClustered 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ForSqlServerIsClustered(KeyBuilder, Boolean) |
已过时.
配置在面向SQL Server时密钥是否群集化。 |
ForSqlServerIsClustered(IConventionKeyBuilder, Nullable<Boolean>, Boolean) |
已过时.
配置在面向SQL Server时密钥是否群集化。 |
ForSqlServerIsClustered(KeyBuilder, Boolean)
注意
Use IsClustered
配置在面向SQL Server时密钥是否群集化。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder ForSqlServerIsClustered (this Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder keyBuilder, bool clustered = true);
[System.Obsolete("Use IsClustered")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder ForSqlServerIsClustered (this Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder keyBuilder, bool clustered = true);
static member ForSqlServerIsClustered : Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder
[<System.Obsolete("Use IsClustered")>]
static member ForSqlServerIsClustered : Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder
<Extension()>
Public Function ForSqlServerIsClustered (keyBuilder As KeyBuilder, Optional clustered As Boolean = true) As KeyBuilder
参数
- keyBuilder
- KeyBuilder
要配置的密钥的生成器。
- clustered
- Boolean
一个值,该值指示键是否聚集。
返回
同一生成器实例,以便可以链接多个调用。
- 属性
适用于
ForSqlServerIsClustered(IConventionKeyBuilder, Nullable<Boolean>, Boolean)
注意
Use IsClustered
配置在面向SQL Server时密钥是否群集化。
[System.Obsolete("Use IsClustered")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder ForSqlServerIsClustered (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder keyBuilder, bool? clustered, bool fromDataAnnotation = false);
[<System.Obsolete("Use IsClustered")>]
static member ForSqlServerIsClustered : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder * Nullable<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder
<Extension()>
Public Function ForSqlServerIsClustered (keyBuilder As IConventionKeyBuilder, clustered As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As IConventionKeyBuilder
参数
- keyBuilder
- IConventionKeyBuilder
要配置的密钥的生成器。
- fromDataAnnotation
- Boolean
指示配置是否是使用数据注释指定的。
返回
如果应用了配置,则为同一生成器实例, null
否则为 。
- 属性