DbContextInfo.ContextType 屬性
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
取得具象 DbContext 類型。
命名空間: System.Data.Entity.Infrastructure
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Overridable ReadOnly Property ContextType As Type
Get
'用途
Dim instance As DbContextInfo
Dim value As Type
value = instance.ContextType
public virtual Type ContextType { get; }
public:
virtual property Type^ ContextType {
Type^ get ();
}
abstract ContextType : Type
override ContextType : Type
function get ContextType () : Type
屬性值
類型:System.Type
具象 DbContext 類型。