Пример #1
0
        public static void DeleteBarcodeInfo(Guid id)
        {
            const string sql = "DELETE TMP WHERE ID=@ID";

            MSSQL.ExecuteNonQuery(ConnectionString, sql, new SqlParameter("@ID", id));
        }
Пример #2
0
        /// <summary>
        /// Inserts file by serializetion data saved in a hashtable
        /// </summary>
        /// <param name="serializationData"></param>
        /// <param name="error"></param>
        public static void InsertFileAsync(Hashtable serializationData, ThreadExceptionEventHandler error)
        {
            SqlCommand command = MSSQL.CreateCommand(ConnectionString, serializationData);

            SQLWorker.Default.Add(command, error);
        }