Example #1
0
        public bool SaveChange(SysFunc entity)
        {
            var func = new sys_func();

            func.Mapp(entity);
            return(_baseQueryRepository.Context.Updateable(func).Where(r => r.ID == entity.ID).ExecuteCommand() > 0);
        }
Example #2
0
        public (bool success, string msg) Add(SysFunc sysFunc)
        {
            var func = new sys_func();

            func.Mapp(sysFunc);
            var success = _baseQueryRepository.Context.Insertable(func).ExecuteCommand() > 0;

            return(success, success ? null : "添加失败!");
        }