C# 클래스 NHibernate.AdoNet.SqlClientSqlCommandSet

Expose the batch functionality in ADO.Net 2.0 Microsoft in its wisdom decided to make my life hard and mark it internal. Through the use of Reflection and some delegates magic, I opened up the functionality. Observable performance benefits are 50%+ when used, so it is really worth it.
상속: IDisposable
파일 보기 프로젝트 열기: nhibernate/nhibernate-core 1 사용 예제들

공개 메소드들

메소드 설명
Append ( SqlCommand command ) : void

Append a command to the batch

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ExecuteNonQuery ( ) : int

Executes the batch

비공개 메소드들

메소드 설명
AssertHasParameters ( SqlCommand command ) : void

This is required because SqlClient.SqlCommandSet will throw if the command has no parameters.

SqlClientSqlCommandSet ( ) : System

메소드 상세

Append() 공개 메소드

Append a command to the batch
public Append ( SqlCommand command ) : void
command System.Data.SqlClient.SqlCommand
리턴 void

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

ExecuteNonQuery() 공개 메소드

Executes the batch
public ExecuteNonQuery ( ) : int
리턴 int