Exemplo n.º 1
0
        public List <UserType> GetUserWithoutAddressInfo(IEnumerable <long> userIds)
        {
            using (var myAdapter = PersistenceLayer.GetDataAccessAdapter())
            {
                var linqMetaData = new LinqMetaData(myAdapter);

                var userEntities = linqMetaData.User.Where(u => userIds.Contains(u.UserId)).ToList();

                if (userEntities.IsEmpty())
                {
                    throw new EmptyCollectionException();
                }

                return(_userFactory.CreateWithoutAddrss(userEntities));
            }
        }