Esempio n. 1
0
        /// <summary>
        /// Find data in database
        /// </summary>
        /// <returns></returns>
        public List<UserInfo> Find(UserInfoCriteria userInfoCriteria = null)
        {
            List<UserInfo> resultList = null;
            IQueryable<UserInfoRow> rowList = _dbContext.UserInfo;
            CriteriaTransformer.CompleteQuery(ref rowList, userInfoCriteria);

            if (rowList != null && rowList.Count() > 0)
            {
                resultList = new List<UserInfo>();
                foreach (var userInfoRow in rowList)
                {
                    resultList.Add(UserInfoTransformer.ToBean(userInfoRow));
                }
            }
            return resultList;
        }
Esempio n. 2
0
 public List<UserInfo> FindUserInfos(UserInfoCriteria userInfoCriteria = null)
 {
     return _userInfoModule.Find(userInfoCriteria);
 }