コード例 #1
0
        public List <PermisstionObject> GetAll()
        {
            List <PermisstionObject> lst = new List <PermisstionObject>();
            var db   = new eTrainingScheduleEntities();
            var list = db.sp_tbl_Permisstion_GetAll();

            foreach (var item in list)
            {
                PermisstionObject ob = new PermisstionObject();
                ob.PerID = item.PerID; ob.F_ADD = item.F_ADD; ob.F_EDIT = item.F_EDIT; ob.F_DELETE = item.F_DELETE; ob.F_SEARCH = item.F_SEARCH; ob.FeaId = item.FeaId; ob.UserId = item.UserId;
                lst.Add(ob);
            }
            return(lst);
        }