共用方式為


DbContextFactoryOptions.ApplicationBasePath 屬性

定義

警告

Use AppContext.BaseDirectory instead.

取得或設定包含應用程式的目錄。

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

屬性值

屬性

適用於