Ejemplo n.º 1
0
        public void SaveParam(ParamInfo param)
        {
            try
            {
                ParamEntity entity = new ParamEntity();
                entity.Key   = param.Key;
                entity.Value = param.Value;

                using (ILHDBTran tran = BeginTran())
                {
                    ParamManager manager = new ParamManager(tran);
                    manager.DeleteParam(entity);
                    manager.AddParam(entity);
                    tran.Commit();
                }
            }
            catch (Exception ex)
            {
                throw HandleException("Param", "保存系统参数失败 - " + param.Key, ex);
            }
        }