public static void ReCreateProcedureIfDeleteExists(dynamic dynamic) { SqlCommand command = new SqlCommand("", Connected.Connection); var query = DeleteProcedure.Delete(dynamic, "ALTER"); Commond.ExecuteQueryForText(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); } }