共用方式為


DbInterceptionContext.DbContexts 屬性

[This page is specific to the Entity Framework version 6.0 Beta. The latest version is available as the 'Entity Framework' NuGet package. For more information, see Entity Framework Releases and Versioning.]

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

語法

'宣告
Public ReadOnly Property DbContexts As IEnumerable(Of DbContext)
    Get
'用途
Dim instance As DbInterceptionContext 
Dim value As IEnumerable(Of DbContext)

value = instance.DbContexts
public IEnumerable<DbContext> DbContexts { get; }
public:
property IEnumerable<DbContext^>^ DbContexts {
    IEnumerable<DbContext^>^ get ();
}
member DbContexts : IEnumerable<DbContext>
function get DbContexts () : IEnumerable<DbContext>

屬性值

型別:System.Collections.Generic.IEnumerable<DbContext>

請參閱

參考

DbInterceptionContext 類別

System.Data.Entity.Infrastructure.Interception 命名空間