共用方式為


DbContextFactoryOptions.ContentRootPath 屬性

定義

警告

Use Directory.GetCurrentDirectory() instead.

取得或設定包含應用程式內容檔案的目錄。

public virtual string ContentRootPath { get; set; }
[System.Obsolete("Use Directory.GetCurrentDirectory() instead.", true)]
public virtual string ContentRootPath { get; set; }
member this.ContentRootPath : string with get, set
[<System.Obsolete("Use Directory.GetCurrentDirectory() instead.", true)>]
member this.ContentRootPath : string with get, set
Public Overridable Property ContentRootPath As String

屬性值

屬性

適用於