C# Class NSoft.NFramework.Data.SqlServer.SqlCommandSet

실행할 복수의 Command 를 Batch로 실행하여, round-trip을 줄이고, 속도를 향샹시킵니다. System.Data.SqlClient.SqlCommandSet가 internal이라 외부에서는 사용할 수 없습니다. 이를 사용하기 위해 delegate를 이용하여 내부 함수를 사용할 수 있도록 했습니다.
Inheritance: IDisposable
Mostrar archivo Open project: debop/NFramework

Public Methods

Method Description
Append ( SqlCommand command ) : void

Batch 작업을 수행할 Command 를 추가합니다. NOTE: 단 Command의 Parameter는 하나 이상이어야 합니다!!!

Dispose ( ) : void

관리되지 않는 리소스의 확보, 해제 또는 다시 설정과 관련된 응용 프로그램 정의 작업을 수행합니다.

ExecuteNonQuery ( ) : int

등록된 Command 들을 Batch작업으로 수행하고, 모든 Batch 작업에 의해 영향을 받은 행의 갯수를 반환합니다.

Private Methods

Method Description
CreateDelegate ( Type type, object target, string method ) : Delegate
Dispose ( bool disposing ) : void
SqlCommandSet ( ) : System

Static 생성자

Method Details

Append() public method

Batch 작업을 수행할 Command 를 추가합니다. NOTE: 단 Command의 Parameter는 하나 이상이어야 합니다!!!
public Append ( SqlCommand command ) : void
command System.Data.SqlClient.SqlCommand
return void

Dispose() public method

관리되지 않는 리소스의 확보, 해제 또는 다시 설정과 관련된 응용 프로그램 정의 작업을 수행합니다.
public Dispose ( ) : void
return void

ExecuteNonQuery() public method

등록된 Command 들을 Batch작업으로 수행하고, 모든 Batch 작업에 의해 영향을 받은 행의 갯수를 반환합니다.
public ExecuteNonQuery ( ) : int
return int