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