RelationalReferenceCollectionBuilderExtensions RelationalReferenceCollectionBuilderExtensions Class

Definition

Relational database specific extension methods for ReferenceCollectionBuilder.

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

Methods

Equals(Object) Equals(Object)

Inherited from System.Object

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

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

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.

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

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

Inherited from System.Object

ToString() ToString()

Inherited from System.Object