RelationalReferenceCollectionBuilderExtensions RelationalReferenceCollectionBuilderExtensions Class

Definition

Relational database specific extension methods for ReferenceCollectionBuilder.

public static class RelationalReferenceCollectionBuilderExtensions
Public Module RelationalReferenceCollectionBuilderExtensions
Inheritance
System.ObjectSystem.Object
RelationalReferenceCollectionBuilderExtensionsRelationalReferenceCollectionBuilderExtensions

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

HasConstraintName(ReferenceCollectionBuilder, String) HasConstraintName(ReferenceCollectionBuilder, String)

Configures the foreign key constraint name for this relationship when targeting a relational database.

public static ReferenceCollectionBuilder HasConstraintName(this ReferenceCollectionBuilder referenceCollectionBuilder, string name)
<ExtensionAttribute>
Public Shared Function HasConstraintName(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.

HasConstraintName(ReferenceCollectionBuilder, String) HasConstraintName(Of TEntity, TRelatedEntity)(ReferenceCollectionBuilder(Of TEntity, TRelatedEntity), String)

Configures the foreign key constraint name for this relationship when targeting a relational database.

public static ReferenceCollectionBuilder<TEntity, TRelatedEntity> HasConstraintName<TEntity, TRelatedEntity>(this ReferenceCollectionBuilder<TEntity, TRelatedEntity> referenceCollectionBuilder, string name)where TEntity : class where TRelatedEntity : class
<ExtensionAttribute>
Public Shared Function HasConstraintName(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.