Share via


SqliteReferenceCollectionBuilderExtensions.ForSqliteHasConstraintName Method

Definition

Overloads

ForSqliteHasConstraintName(ReferenceCollectionBuilder, String)

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

ForSqliteHasConstraintName<TEntity,TReferencedEntity>(ReferenceCollectionBuilder<TEntity,TReferencedEntity>, String)

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

ForSqliteHasConstraintName(ReferenceCollectionBuilder, String)

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder ForSqliteHasConstraintName (this Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder builder, string name);
static member ForSqliteHasConstraintName : Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder
<Extension()>
Public Function ForSqliteHasConstraintName (builder As ReferenceCollectionBuilder, name As String) As ReferenceCollectionBuilder

Parameters

builder
ReferenceCollectionBuilder

The builder being used to configure the relationship.

name
String

The name of the foreign key constraint.

Returns

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

Applies to

ForSqliteHasConstraintName<TEntity,TReferencedEntity>(ReferenceCollectionBuilder<TEntity,TReferencedEntity>, String)

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<TEntity,TReferencedEntity> ForSqliteHasConstraintName<TEntity,TReferencedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<TEntity,TReferencedEntity> builder, string name) where TEntity : class where TReferencedEntity : class;
static member ForSqliteHasConstraintName : Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<'Entity, 'ReferencedEntity (requires 'Entity : null and 'ReferencedEntity : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<'Entity, 'ReferencedEntity (requires 'Entity : null and 'ReferencedEntity : null)> (requires 'Entity : null and 'ReferencedEntity : null)
<Extension()>
Public Function ForSqliteHasConstraintName(Of TEntity As Class, TReferencedEntity As Class) (builder As ReferenceCollectionBuilder(Of TEntity, TReferencedEntity), name As String) As ReferenceCollectionBuilder(Of TEntity, TReferencedEntity)

Type Parameters

TEntity

The principal entity type in this relationship.

TReferencedEntity

The dependent entity type in this relationship.

Parameters

builder
ReferenceCollectionBuilder<TEntity,TReferencedEntity>

The builder being used to configure the relationship.

name
String

The name of the foreign key constraint.

Returns

ReferenceCollectionBuilder<TEntity,TReferencedEntity>

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

Applies to