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); }
public void GetExpression_Test1() { TestA A = new TestA { Id = 10, Name = "测试" }; XExp.GetExpression <TestA>("Name", "123", QType.NotLike); }
public void SetProptertiesValue_Test() { Dictionary <string, Object> keyValues = new Dictionary <string, Object> { { "Id", 1 }, { "Name", "李四" } }; TestA A = new TestA(); XExp.SetProptertiesValue <TestA>(keyValues, A); }
public void GetCombineClass_Test() { var res = XExp.CombineClass <TestA, TestB>((t, x) => new { t, x }); //Instantiate first and assign later }
public void GetExpression_Test() { string[] arr = new[] { "Id", "Name" }; var res = XExp.GetExpression <TestA>(arr); }