示例#1
0
 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);
     }
 }
示例#2
0
 public ActionResult <string> Get(int id)
 {
     return(sqlMap.GetSqlStatment("updateFormName"));
 }