Пример #1
0
        public static void ReCreateProcedureIfDeleteExists(dynamic dynamic)
        {
            SqlCommand command = new SqlCommand("", Services.Connection);
            var        query   = DeleteProcedure.ProcedureDelete(dynamic, "ALTER");

            Commond.ExecuteQueryForProcedure(command, query);
        }
Пример #2
0
        public static void Delete(dynamic dynamic)
        {
            var query = DeleteProcedure.Delete(dynamic, "Create");
            var data  = commoned(dynamic, query);

            if (data == false)
            {
                Tools.ReCreateProcedureIfDeleteExists(dynamic);
            }
        }