Esempio n. 1
0
 public void CanGetExpression()
 {
     var ex = new Expre<MyClass>();
     ex.And.Add(ex.GetName(c => c.FirstName), "Tson1", Match.Eq);
     ex.Or.Add(ex.GetName(c => c.Age), 30, Match.Gt);
     Debug.WriteLine(ex.GetSQL());
 }
Esempio n. 2
0
        public void CanGetProName()
        {
            var ex=new Expre<MyClass>();
            //ex.And.Add(ex.Ps.FirstName, "my", Match.Eq);

            string n= Utility.GetPropertyName<MyClass>(c => c.FirstName);
            Debug.WriteLine(n);

            Debug.WriteLine(ex.GetName(c => c.FirstName));
            Debug.WriteLine(Utility.GetPropertyName<MyClass>(c => c.Age));
            Debug.WriteLine(ex.GetName(c => c.Age));
            Debug.WriteLine(ex.GetName(c => c.BerthDay));
        }