Exemplo n.º 1
0
        public static List <UniqueUser> GetUserPage(int pageIndex, int pageSize)
        {
            UsersDataContext  dc    = Configuration.GetUsersDataContext();
            List <UniqueUser> users = new List <UniqueUser>();

            var records = dc.GetUniqueUserPageOrderedByDateOfBirth(pageIndex, pageSize);

            foreach (CommonTools.TestSuite.DummyDatabase.SqlProvider.UniqueUser user in records)
            {
                users.Add(new UniqueUser(user));
            }

            return(users);
        }