DbInterceptionContext.WithDbContext 方法
[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 Function WithDbContext ( _
context As DbContext _
) As DbInterceptionContext
'用途
Dim instance As DbInterceptionContext
Dim context As DbContext
Dim returnValue As DbInterceptionContext
returnValue = instance.WithDbContext(context)
public DbInterceptionContext WithDbContext(
DbContext context
)
public:
DbInterceptionContext^ WithDbContext(
DbContext^ context
)
member WithDbContext :
context:DbContext -> DbInterceptionContext
public function WithDbContext(
context : DbContext
) : DbInterceptionContext
參數
- context
型別:System.Data.Entity.DbContext
傳回值
型別:System.Data.Entity.Infrastructure.Interception.DbInterceptionContext