SqliteReferenceCollectionBuilderExtensions.ForSqliteHasConstraintName 方法

定义

重载

ForSqliteHasConstraintName(ReferenceCollectionBuilder, String)

在面向 SQLite 时为此关系配置外键约束名称。

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

在面向 SQLite 时为此关系配置外键约束名称。

ForSqliteHasConstraintName(ReferenceCollectionBuilder, String)

在面向 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

参数

builder
ReferenceCollectionBuilder

用于配置关系的生成器。

name
String

外键约束的名称。

返回

同一生成器实例,以便可以链接多个调用。

适用于

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

在面向 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)

类型参数

TEntity

此关系中的主体实体类型。

TReferencedEntity

此关系中的依赖实体类型。

参数

builder
ReferenceCollectionBuilder<TEntity,TReferencedEntity>

用于配置关系的生成器。

name
String

外键约束的名称。

返回

ReferenceCollectionBuilder<TEntity,TReferencedEntity>

同一生成器实例,以便可以链接多个调用。

适用于