Пример #1
0
 /// <summary>
 /// Returns a SQL command describing the database operation for reading the queue item data from the Persistence Queue database.
 /// </summary>
 /// <param name="connection">The database connection object to be associated with the new command.</param>
 /// <param name="itemId">The unique ID of the queue item.</param>
 /// <returns>A new SQL command initialized with the respective command text, parameters and their initial values.</returns>
 public static IDbCommand CreateQueueItemReadCommand(IDbConnection connection, Guid itemId)
 {
     return(SqlCommandFactory.CreateSqlStreamReadCommand(connection, SqlObjectResources.SchemaUserApplication, SqlObjectResources.TablePersistenceQueue, SqlObjectResources.ColumnQueueItemDataRaw, SqlObjectResources.ColumnQueueItemID, SqlDbType.UniqueIdentifier, itemId));
 }