Пример #1
0
        public void INTest2()
        {
            var y       = 100;
            var user    = new UserRepository(context);
            var details = new UserDetailsRepository(context);
            var arr     = new string[] { "1", "2" };
            var result  = user.Where(x => x.Id > 0 && x.Id < y && arr.Any() && details.Any(z => z.Nickname == x.Username))
                          .Select(x => new { x.Id, OldId = x.Id + 1, OOID = y });

            var list = result.ToList();
        }