共用方式為


SqliteKeyBuilderExtensions.ForSqliteHasName(KeyBuilder, String) 方法

定義

以 SQLite 為目標時,設定資料庫中索引鍵條件約束的名稱。

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

參數

builder
KeyBuilder

要設定之索引鍵的產生器。

name
String

索引鍵名稱。

傳回

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

適用於