C# Класс Azavea.Open.DAO.SQL.DbCommandCache

Holds DbCommands, we save them to allow us to reuse them (saves time).
Показать файл Открыть проект

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

Метод Описание
Get ( string sql, IDbConnection conn ) : IDbCommand

This returns a command from the cache, or creates a new one if necessary. This method is thread-safe.

Return ( string sql, IDbConnection conn, IDbCommand cmd ) : void

Returns a command to the cache when it is no longer used, allowing another call to reuse it. This method is thread-safe.

Описание методов

Get() публичный Метод

This returns a command from the cache, or creates a new one if necessary. This method is thread-safe.
public Get ( string sql, IDbConnection conn ) : IDbCommand
sql string
conn IDbConnection
Результат IDbCommand

Return() публичный Метод

Returns a command to the cache when it is no longer used, allowing another call to reuse it. This method is thread-safe.
public Return ( string sql, IDbConnection conn, IDbCommand cmd ) : void
sql string
conn IDbConnection
cmd IDbCommand
Результат void