語言

DbMigrationsConfiguration.ContextKey 屬性

定義

取得或設定字串,用以區分屬於此組態的遷移與使用同一資料庫的其他組態的遷移。 此特性使多個不同模型的遷移能套用於單一資料庫。

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

屬性值

適用於