Share via


DbContext.Configuration 屬性

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

為內容的組態選項提供存取權。

命名空間:  System.Data.Entity
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
Public ReadOnly Property Configuration As DbContextConfiguration 
    Get
'用途
Dim instance As DbContext 
Dim value As DbContextConfiguration 

value = instance.Configuration
public DbContextConfiguration Configuration { get; }
public:
property DbContextConfiguration^ Configuration {
    DbContextConfiguration^ get ();
}
member Configuration : DbContextConfiguration
function get Configuration () : DbContextConfiguration

屬性值

類型:System.Data.Entity.Infrastructure.DbContextConfiguration
用來存取組態選項的物件。

請參閱

參考

DbContext 類別

System.Data.Entity 命名空間