DbCommandInterceptionContext<TResult>.WithDbContext-Methode
[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.]
Namespace: System.Data.Entity.Infrastructure.Interception
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
Public Function WithDbContext ( _
context As DbContext _
) As DbCommandInterceptionContext(Of TResult)
'Usage
Dim instance As DbCommandInterceptionContext
Dim context As DbContext
Dim returnValue As DbCommandInterceptionContext(Of TResult)
returnValue = instance.WithDbContext(context)
public DbCommandInterceptionContext<TResult> WithDbContext(
DbContext context
)
public:
DbCommandInterceptionContext<TResult>^ WithDbContext(
DbContext^ context
)
member WithDbContext :
context:DbContext -> DbCommandInterceptionContext<'TResult>
public function WithDbContext(
context : DbContext
) : DbCommandInterceptionContext<TResult>
Parameter
- context
Typ: System.Data.Entity.DbContext
Rückgabewert
Typ: System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<TResult>