public virtual int Update(string mapName, Dictionary <string, object> parmas) { using (MySqlConnection conn = new MySqlConnection(sqlMap.SqlConnStr)) { var paramets = new DynamicParameters(); foreach (KeyValuePair <string, object> key in parmas) { paramets.Add(key.Key, key.Value); } var result = conn.Execute(sqlMap.GetSqlStatment(mapName)); return(result); } }
public ActionResult <string> Get(int id) { return(sqlMap.GetSqlStatment("updateFormName")); }