Esempio n. 1
0
        public void Avg()
        {
            var t     = new QueryTest();
            var query = from user in db.Set <User>() where t.Test1() select user;

            query.Average(x => x.Id);
        }
Esempio n. 2
0
        public void Count1()
        {
            var t     = new QueryTest();
            var query = from user in db.Set <User>() where t.Test1() select user;

            query.Count(x => x.Password == string.Empty);
        }
Esempio n. 3
0
        public void Count()
        {
            var t     = new QueryTest();
            var query = from user in db.Set <User>() where t.Test1() select user;

            query.Count();
        }
Esempio n. 4
0
        public void  杂方法调用()
        {
            var t     = new QueryTest();
            var query = from user in db.Set <User>() where t.Test1() select user;

            query.ToList();
        }
Esempio n. 5
0
 public void Avg()
 {
     var t = new QueryTest();
     var query = from user in db.Set<User>() where t.Test1() select user;
     query.Average(x => x.Id);
 }
Esempio n. 6
0
 public void Count1()
 {
     var t = new QueryTest();
     var query = from user in db.Set<User>() where t.Test1() select user;
     query.Count(x => x.Password == string.Empty);
 }
Esempio n. 7
0
 public void Count()
 {
     var t = new QueryTest();
     var query = from user in db.Set<User>() where t.Test1() select user;
     query.Count();
 }
Esempio n. 8
0
 public void 复杂方法调用()
 {
     var t = new QueryTest();
     var query = from user in db.Set<User>() where t.Test1() select user;
     query.ToList();
 }