/// <summary> /// 写入系统日志 /// </summary> /// <param name="entity"></param> /// <returns></returns> public bool Insert(SysLog entity) { string sql = FillData.AppendSqlToInsert(entity); MySqlCommand cmd = new MySqlCommand(sql, DataBase.GetOpenConn4MySql()); MySqlParameter[] para = FillData.AppendParas(entity); //拼接参数 cmd.Parameters.AddRange(para); //添加参数 int result = cmd.ExecuteNonQuery(); if (result > 0) { return true; } return false; }
public int Update(SysLog model) { throw new NotImplementedException(); }
public bool Insert(SysLog entity) { return _ISysLogDao.Insert(entity); }