语言

DbMigrationsConfiguration.ContextKey 属性

定义

获取或设置用于区分属于此配置的迁移的字符串,以及使用同一数据库属于其他配置的迁移。 此属性允许从多个不同的模型迁移应用于单个数据库。

public string ContextKey { get; set; }
member this.ContextKey : string with get, set
Public Property ContextKey As String

属性值

适用于