예제 #1
0
        public int View_AuthorityroleUpdate(View_AuthorityroleModel p)
        {
            View_Authorityrole pc = new View_Authorityrole()
            {
                pid   = p.Pid,
                u_oid = p.U_oid,
                text  = p.Text
            };

            return(Update(pc));
        }
예제 #2
0
        public List <View_AuthorityroleModel> View_AuthorityroleSelect()
        {
            List <View_Authorityrole>      list  = Select();
            List <View_AuthorityroleModel> list2 = new List <View_AuthorityroleModel>();

            foreach (View_Authorityrole item in list)
            {
                View_AuthorityroleModel sm = new View_AuthorityroleModel()
                {
                    Pid   = item.pid,
                    U_oid = item.u_oid,
                    Text  = item.text
                };
                list2.Add(sm);
            }
            return(list2);;
        }
예제 #3
0
        public List <View_AuthorityroleModel> SelectView_AuthorityroleBy(int id)
        {
            MyDbContext db = CreateContext();
            List <View_Authorityrole> list = db.View_Authorityrole.AsNoTracking()
                                             .Where(e => e.pid == id)
                                             .Select(e => e)
                                             .ToList();
            List <View_AuthorityroleModel> list2 = new List <View_AuthorityroleModel>();

            foreach (View_Authorityrole item in list)
            {
                View_AuthorityroleModel sm = new View_AuthorityroleModel()
                {
                    Pid   = item.pid,
                    U_oid = item.u_oid,
                    Text  = item.text
                };
                list2.Add(sm);
            }
            return(list2);;
        }
예제 #4
0
 public int View_AuthorityroleUpdate(View_AuthorityroleModel sm)
 {
     return(ist.View_AuthorityroleUpdate(sm));
 }
예제 #5
0
 public int View_AuthorityroleAdd(View_AuthorityroleModel sm)
 {
     return(ist.View_AuthorityroleAdd(sm));
 }