/// <summary> /// 执行新的日志记录 /// </summary> /// <param name="obj"></param> /// <returns>影响行数</returns> public int Insert(string Content) { srp_log srp_Log = new srp_log(); srp_Log.content = Content; srp_Log.create_time = DateTime.Now.AddHours(GlobalDefine.SysTimeZone); return(sRPLogService.Insert(srp_Log)); }
/// <summary> /// 执行新的日志记录 /// </summary> /// <param name="obj"></param> /// <returns>影响行数</returns> public int Insert(srp_log obj) { try { string sql = "insert into fimp.srp_log(content,create_time)values('{0}','{1}')"; sql = string.Format(sql, obj.content, obj.create_time); int count = PostgreHelper.ExecuteNonQuery(sql); return(count); } catch (Exception ex) { throw ex; } }
/// <summary> /// 执行新的日志记录 /// </summary> /// <param name="obj"></param> /// <returns>影响行数</returns> public int Insert(srp_log obj) { return(sRPLogService.Insert(obj)); }