Exemple #1
0
 public void GetCombineClassValue_Test()
 {
     List <DynamicPropertyValue> dynamics = new List <DynamicPropertyValue>
     {
         new DynamicPropertyValue("Id", typeof(int), 1)
     };
     var res = XExp.CombineClassWithValue <TestA, TestB>((t, x) => new { t, x }, dynamics);
 }
Exemple #2
0
        public void GetExpression_Test1()
        {
            TestA A = new TestA {
                Id = 10, Name = "测试"
            };

            XExp.GetExpression <TestA>("Name", "123", QType.NotLike);
        }
Exemple #3
0
        public void SetProptertiesValue_Test()
        {
            Dictionary <string, Object> keyValues = new Dictionary <string, Object>
            {
                { "Id", 1 },
                { "Name", "李四" }
            };
            TestA A = new TestA();

            XExp.SetProptertiesValue <TestA>(keyValues, A);
        }
Exemple #4
0
 public void GetCombineClass_Test()
 {
     var res = XExp.CombineClass <TestA, TestB>((t, x) => new { t, x });
     //Instantiate first and assign later
 }
Exemple #5
0
 public void GetExpression_Test()
 {
     string[] arr = new[] { "Id", "Name" };
     var      res = XExp.GetExpression <TestA>(arr);
 }