Exemplo n.º 1
0
        private User Login(string userName, string pwd)
        {
            pwd = GetMd5(pwd);
            var user = efRepository.LoadEntitiy(s => s.UserName == userName && s.Password == pwd && s.IsDelete == false);

            return(user);
        }
Exemplo n.º 2
0
        public ExamStudent GetStudentInfo(string IdCard)
        {
            var result = efRepository.LoadEntitiy(s => DbFunctions.DiffDays(s.CreateTime, DateTime.Now) == 0);

            return(result);
        }