/// <summary> /// Method to convert UpdateableTables Enum to the string of the stored procedure name /// </summary> /// <param name="TableToUpdateTo">Enum Value selected</param> /// <returns>String name of Stored Procedure in Database</returns> internal static string GetStoredProcedureName(UpdateableTables TableToUpdateTo) { string temp = "sp_Update"; // Insert switch to set table name return(temp); }
public bool Update(UpdateableTables TableToUpdateFrom, Dictionary <string, object> Parameters) { string procedureName = EnumHelper.GetStoredProcedureName(TableToUpdateFrom); command = InitializeCommand(procedureName, true); return(PerformProcedure(command, Parameters)); }