共用方式為


DbCommandInterceptionContext<TResult>.WithCommandBehavior 方法

定義

建立新的 DbCommandInterceptionContext<TResult> ,其中包含這個攔截內容中的所有內容資訊,以及指定的 CommandBehavior

public System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<TResult> WithCommandBehavior(System.Data.CommandBehavior commandBehavior);
override this.WithCommandBehavior : System.Data.CommandBehavior -> System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result>

參數

commandBehavior
CommandBehavior

要關聯的命令列為。

傳回

與指定命令列為相關聯的新攔截內容。

適用於