public static void ReCreateProcedureIfDeleteExists(dynamic dynamic) { SqlCommand command = new SqlCommand("", Services.Connection); var query = DeleteProcedure.ProcedureDelete(dynamic, "ALTER"); Commond.ExecuteQueryForProcedure(command, query); }
public static void Delete(dynamic dynamic) { var query = DeleteProcedure.Delete(dynamic, "Create"); var data = commoned(dynamic, query); if (data == false) { Tools.ReCreateProcedureIfDeleteExists(dynamic); } }