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
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for