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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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