public void TestToSQL() { Student student = new Student(); student.ID = 4; student.StudentName = "Student4"; student.ClassName = "Class4"; ExpressionToSQL tosql=new ExpressionToSQL(); tosql.ToSQL<Student>(c => c.ID == 1&&c.ClassName=="class1"&&c.Score>(decimal) 10.5&&c.InTime>DateTime.Now); }