SqlServerReferenceReferenceBuilderExtensions SqlServerReferenceReferenceBuilderExtensions Class

Definition

SQL Server specific extension methods for ReferenceReferenceBuilder.

public static class SqlServerReferenceReferenceBuilderExtensions
Public Module SqlServerReferenceReferenceBuilderExtensions
Inheritance
System.ObjectSystem.Object
SqlServerReferenceReferenceBuilderExtensionsSqlServerReferenceReferenceBuilderExtensions

Methods

Equals(Object) Equals(Object)

Inherited from System.Object

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

Inherited from System.Object

ForSqlServerHasConstraintName(ReferenceReferenceBuilder, String) ForSqlServerHasConstraintName(ReferenceReferenceBuilder, String)

Configures the foreign key constraint name for this relationship when targeting SQL Server.

public static ReferenceReferenceBuilder ForSqlServerHasConstraintName(this ReferenceReferenceBuilder referenceReferenceBuilder, string name)
<ExtensionAttribute>
Public Shared Function ForSqlServerHasConstraintName(referenceReferenceBuilder As ReferenceReferenceBuilder, name As String) As ReferenceReferenceBuilder
Parameters
referenceReferenceBuilder
ReferenceReferenceBuilder ReferenceReferenceBuilder

The builder being used to configure the relationship.

name
System.String System.String

The name of the foreign key constraint.

Returns

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

ForSqlServerHasConstraintName(ReferenceReferenceBuilder, String) ForSqlServerHasConstraintName(Of TEntity, TRelatedEntity)(ReferenceReferenceBuilder(Of TEntity, TRelatedEntity), String)

Configures the foreign key constraint name for this relationship when targeting SQL Server.

public static ReferenceReferenceBuilder<TEntity, TRelatedEntity> ForSqlServerHasConstraintName<TEntity, TRelatedEntity>(this ReferenceReferenceBuilder<TEntity, TRelatedEntity> referenceReferenceBuilder, string name)where TEntity : class where TRelatedEntity : class
<ExtensionAttribute>
Public Shared Function ForSqlServerHasConstraintName(Of TEntity As Class, TRelatedEntity As Class)(referenceReferenceBuilder As ReferenceReferenceBuilder(Of TEntity, TRelatedEntity), name As String) As ReferenceReferenceBuilder(Of TEntity, TRelatedEntity)
Type Parameters
TEntity

The entity type on one end of the relationship.

TRelatedEntity

The entity type on the other end of the relationship.

Parameters
referenceReferenceBuilder
ReferenceReferenceBuilder<TEntity, TRelatedEntity> ReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

The builder being used to configure the relationship.

name
System.String System.String

The name of the foreign key constraint.

Returns
ReferenceReferenceBuilder<TEntity, TRelatedEntity> ReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

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