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

            query.Sum(x => x.Id);
        }
Exemplo 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);
        }
Exemplo 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();
        }
Exemplo n.º 4
0
        public void  杂方法调用()
        {
            var t     = new QueryTest();
            var query = from user in db.Set <User>() where t.Test1() select user;

            query.ToList();
        }
Exemplo 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);
 }
Exemplo 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);
 }
Exemplo 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();
 }
Exemplo n.º 8
0
 public void 复杂方法调用()
 {
     var t = new QueryTest();
     var query = from user in db.Set<User>() where t.Test1() select user;
     query.ToList();
 }