/// <summary> /// Returns a SQL command describing the database operation for writing data into 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 CreateQueueItemWriteCommand(IDbConnection connection, Guid itemId) { return(SqlCommandFactory.CreateSqlStreamWriteCommand(connection, SqlObjectResources.SchemaUserApplication, SqlObjectResources.TablePersistenceQueue, SqlObjectResources.ColumnQueueItemDataRaw, SqlObjectResources.ColumnQueueItemID, SqlDbType.UniqueIdentifier, itemId)); }