共用方式為


DbCommandInterceptor.ScalarExecuting 方法

[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 Overridable Sub ScalarExecuting ( _
    command As DbCommand, _
    interceptionContext As DbCommandInterceptionContext(Of Object) _
)
'用途
Dim instance As DbCommandInterceptor 
Dim command As DbCommand 
Dim interceptionContext As DbCommandInterceptionContext(Of Object)

instance.ScalarExecuting(command, interceptionContext)
public virtual void ScalarExecuting(
    DbCommand command,
    DbCommandInterceptionContext<Object> interceptionContext
)
public:
virtual void ScalarExecuting(
    DbCommand^ command, 
    DbCommandInterceptionContext<Object^>^ interceptionContext
)
abstract ScalarExecuting : 
        command:DbCommand * 
        interceptionContext:DbCommandInterceptionContext<Object> -> unit  
override ScalarExecuting : 
        command:DbCommand * 
        interceptionContext:DbCommandInterceptionContext<Object> -> unit
public function ScalarExecuting(
    command : DbCommand, 
    interceptionContext : DbCommandInterceptionContext<Object>
)

參數

實作

IDbCommandInterceptor.ScalarExecuting(DbCommand, DbCommandInterceptionContext<Object>)

請參閱

參考

DbCommandInterceptor 類別

System.Data.Entity.Infrastructure.Interception 命名空間