Freigeben über


DbCommandInterceptionContext<TResult>.WithObjectContext-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 WithObjectContext ( _
    context As ObjectContext _
) As DbCommandInterceptionContext(Of TResult)
'Usage
Dim instance As DbCommandInterceptionContext 
Dim context As ObjectContext 
Dim returnValue As DbCommandInterceptionContext(Of TResult)

returnValue = instance.WithObjectContext(context)
public DbCommandInterceptionContext<TResult> WithObjectContext(
    ObjectContext context
)
public:
DbCommandInterceptionContext<TResult>^ WithObjectContext(
    ObjectContext^ context
)
member WithObjectContext : 
        context:ObjectContext -> DbCommandInterceptionContext<'TResult> 
public function WithObjectContext(
    context : ObjectContext
) : DbCommandInterceptionContext<TResult>

Parameter

Rückgabewert

Typ: System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<TResult>

Siehe auch

Verweis

DbCommandInterceptionContext<TResult> Klasse

System.Data.Entity.Infrastructure.Interception-Namespace