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

键的名称。

返回

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

适用于