SqlServerKeyBuilderExtensions SqlServerKeyBuilderExtensions Class

Definition

SQL Server specific extension methods for KeyBuilder.

public static class SqlServerKeyBuilderExtensions
Public Module SqlServerKeyBuilderExtensions
Inheritance
System.ObjectSystem.Object
SqlServerKeyBuilderExtensionsSqlServerKeyBuilderExtensions

Methods

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

ForSqlServerHasName(KeyBuilder, String) ForSqlServerHasName(KeyBuilder, String)

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

public static KeyBuilder ForSqlServerHasName(this KeyBuilder keyBuilder, string name)
<ExtensionAttribute>
Public Shared Function ForSqlServerHasName(keyBuilder As KeyBuilder, name As String) As KeyBuilder
Parameters
keyBuilder
KeyBuilder KeyBuilder

The builder for the key being configured.

name
System.String System.String

The name of the key.

Returns

The same builder instance so that multiple calls can be chained.

ForSqlServerIsClustered(KeyBuilder, Boolean) ForSqlServerIsClustered(KeyBuilder, Boolean)

Configures whether the key is clustered when targeting SQL Server.

public static KeyBuilder ForSqlServerIsClustered(this KeyBuilder keyBuilder, bool clustered = true)
<ExtensionAttribute>
Public Shared Function ForSqlServerIsClustered(keyBuilder As KeyBuilder, clustered As Boolean = True) As KeyBuilder
Parameters
keyBuilder
KeyBuilder KeyBuilder

The builder for the key being configured.

clustered
System.Boolean System.Boolean

A value indicating whether the key is clustered.

Returns

The same builder instance so that multiple calls can be chained.

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object