SqlServerReferenceCollectionBuilderExtensions SqlServerReferenceCollectionBuilderExtensions Class

Definition

SQL Server specific extension methods for ReferenceCollectionBuilder.

public static class SqlServerReferenceCollectionBuilderExtensions
Public Module SqlServerReferenceCollectionBuilderExtensions
Inheritance
System.ObjectSystem.Object
SqlServerReferenceCollectionBuilderExtensionsSqlServerReferenceCollectionBuilderExtensions

Inherited Members

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Methods

ForSqlServerHasConstraintName(ReferenceCollectionBuilder, String) ForSqlServerHasConstraintName(ReferenceCollectionBuilder, String)

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

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

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(ReferenceCollectionBuilder, String) ForSqlServerHasConstraintName(Of TEntity, TRelatedEntity)(ReferenceCollectionBuilder(Of TEntity, TRelatedEntity), String)

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

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

The principal entity type in this relationship.

TRelatedEntity

The dependent entity type in this relationship.

Parameters
referenceCollectionBuilder
ReferenceCollectionBuilder<TEntity, TRelatedEntity> ReferenceCollectionBuilder(Of TEntity, TRelatedEntity)

The builder being used to configure the relationship.

name
System.String System.String

The name of the foreign key constraint.

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

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