DbCommandInterceptionContext<TResult>.WithCommandBehavior-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 WithCommandBehavior ( _
commandBehavior As CommandBehavior _
) As DbCommandInterceptionContext(Of TResult)
'Usage
Dim instance As DbCommandInterceptionContext
Dim commandBehavior As CommandBehavior
Dim returnValue As DbCommandInterceptionContext(Of TResult)
returnValue = instance.WithCommandBehavior(commandBehavior)
public DbCommandInterceptionContext<TResult> WithCommandBehavior(
CommandBehavior commandBehavior
)
public:
DbCommandInterceptionContext<TResult>^ WithCommandBehavior(
CommandBehavior commandBehavior
)
member WithCommandBehavior :
commandBehavior:CommandBehavior -> DbCommandInterceptionContext<'TResult>
public function WithCommandBehavior(
commandBehavior : CommandBehavior
) : DbCommandInterceptionContext<TResult>
Parameter
- commandBehavior
Typ: System.Data.CommandBehavior
Rückgabewert
Typ: System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<TResult>