共用方式為


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>

相同的產生器實例,以便鏈結多個呼叫。

適用於