SqlServerKeyBuilderExtensions Class

Definition

SQL Server specific extension methods for KeyBuilder.

public static class SqlServerKeyBuilderExtensions
type SqlServerKeyBuilderExtensions = class
Public Module SqlServerKeyBuilderExtensions
Inheritance
SqlServerKeyBuilderExtensions

Remarks

See Modeling entity types and relationships, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.

Methods

CanSetIsClustered(IConventionKeyBuilder, Nullable<Boolean>, Boolean)

Returns a value indicating whether the key can be configured as clustered.

ForSqlServerHasName(KeyBuilder, String)

Configures the name of the key constraint in the database when targeting SQL Server.

ForSqlServerIsClustered(IConventionKeyBuilder, Nullable<Boolean>, Boolean)
Obsolete.

Configures whether the key is clustered when targeting SQL Server.

ForSqlServerIsClustered(KeyBuilder, Boolean)
Obsolete.

Configures whether the key is clustered when targeting SQL Server.

IsClustered(IConventionKeyBuilder, Nullable<Boolean>, Boolean)

Configures whether the key is clustered when targeting SQL Server.

IsClustered(KeyBuilder, Boolean)

Configures whether the key is clustered when targeting SQL Server.

IsClustered<TEntity>(KeyBuilder<TEntity>, Boolean)

Configures whether the key is clustered when targeting SQL Server.

Applies to