/// <summary> /// Method to convert InsertableTables Enum to the string of the stored procedure name /// </summary> /// <param name="TableToInsertTo">Enum value selected</param> /// <returns>String name of Stored Procedure in database</returns> internal static string GetStoredProcedureName(InsertableTables TableToInsertTo) { string temp = "sp_Insert"; // Insert switch here to dictate table names return(temp); }
public bool Insert(InsertableTables TableToInsertInto, Dictionary <string, object> Parameters) { string procedureName = EnumHelper.GetStoredProcedureName(TableToInsertInto); command = InitializeCommand(procedureName, true); return(PerformProcedure(command, Parameters)); }