SqlServerKeyBuilderExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
CanSetFillFactor(IConventionKeyBuilder, Nullable<Int32>, Boolean) |
Returns a value indicating whether the key can be configured with fill factor option when targeting SQL Server. |
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. |
HasFillFactor(IConventionKeyBuilder, Nullable<Int32>, Boolean) |
Configures whether the key is created with fill factor option when targeting SQL Server. |
HasFillFactor(KeyBuilder, Int32) |
Configures whether the key is created with fill factor option when targeting SQL Server. |
HasFillFactor<TEntity>(KeyBuilder<TEntity>, Int32) |
Configures whether the key is created with fill factor option 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. |