Ejemplo n.º 1
0
 public IEnumerable <User_Profile_Model> GetUserListWithLinq(User_Profile_Model userinfo)
 {
     using (var db = new PermaisuriCMSEntities())
     {
         var userInfo = db.LoadWithUserProfilerWithLinq(u => u == null
             ? null
             : new User_Profile_Model
         {
             User_Guid     = u.User_Guid,
             User_Account  = u.User_Account,
             User_Pwd      = u.User_Pwd,
             Display_Name  = u.Display_Name,
             Primary_Email = u.Primary_Email,
             Mobile_Phone  = u.Mobile_Phone
         }, userinfo.User_Account, userinfo.User_Pwd.GetPwdmd5());
         return(userInfo);
     }
 }