DbMigrationsConfiguration.ContextKey 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定字串,用以區分屬於此組態的遷移與使用同一資料庫的其他組態的遷移。 此特性使多個不同模型的遷移能套用於單一資料庫。
public string ContextKey { get; set; }
member this.ContextKey : string with get, set
Public Property ContextKey As String