SqliteReferenceReferenceBuilderExtensions.ForSqliteHasConstraintName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ForSqliteHasConstraintName(ReferenceReferenceBuilder, String) |
Configures the foreign key constraint name for this relationship when targeting SQLite. |
ForSqliteHasConstraintName<TEntity,TReferencedEntity>(ReferenceReferenceBuilder<TEntity,TReferencedEntity>, String) |
Configures the foreign key constraint name for this relationship when targeting SQLite. |
ForSqliteHasConstraintName(ReferenceReferenceBuilder, String)
Configures the foreign key constraint name for this relationship when targeting SQLite.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder ForSqliteHasConstraintName (this Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder builder, string name);
static member ForSqliteHasConstraintName : Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder
<Extension()>
Public Function ForSqliteHasConstraintName (builder As ReferenceReferenceBuilder, name As String) As ReferenceReferenceBuilder
Parameters
- builder
- ReferenceReferenceBuilder
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>(ReferenceReferenceBuilder<TEntity,TReferencedEntity>, String)
Configures the foreign key constraint name for this relationship when targeting SQLite.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<TEntity,TReferencedEntity> ForSqliteHasConstraintName<TEntity,TReferencedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<TEntity,TReferencedEntity> builder, string name) where TEntity : class where TReferencedEntity : class;
static member ForSqliteHasConstraintName : Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<'Entity, 'ReferencedEntity (requires 'Entity : null and 'ReferencedEntity : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<'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 ReferenceReferenceBuilder(Of TEntity, TReferencedEntity), name As String) As ReferenceReferenceBuilder(Of TEntity, TReferencedEntity)
Type Parameters
- TEntity
The entity type on one end of the relationship.
- TReferencedEntity
The entity type on the other end of the relationship.
Parameters
- builder
- ReferenceReferenceBuilder<TEntity,TReferencedEntity>
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
Entity Framework