예제 #1
0
 /// <summary>
 /// Returns a SQL command describing the database operation for returning data size of the specified queue item in 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 CreateQueueItemGetSizeCommand(IDbConnection connection, Guid itemId)
 {
     return(SqlCommandFactory.CreateSqlStreamGetSizeCommand(connection, SqlObjectResources.SchemaUserApplication, SqlObjectResources.TablePersistenceQueue, SqlObjectResources.ColumnQueueItemDataRaw, SqlObjectResources.ColumnQueueItemID, SqlDbType.UniqueIdentifier, itemId));
 }