상속: INHOrder
예제 #1
0
        public void Generic_NHOrder_ParseOrder()
        {
            var expression = DynamicExpression.ParseLambda <User, object>("Name");
            var order      = new NHOrder <User>(expression);

            Console.WriteLine(order);
        }
예제 #2
0
        public void OrderByPropertyName()
        {
            var expected = new NHOrder <User>(u => u.Name);
            var actual   = new NHOrder <User>("Name");

            Assert.AreEqual(expected.ToString(), actual.ToString());
        }
예제 #3
0
 public void Generic_NHOrder_ParseOrder() {
     var expression = DynamicExpression.ParseLambda<User, object>("Name");
     var order = new NHOrder<User>(expression);
     Console.WriteLine(order);
 }
예제 #4
0
        public void OrderByPropertyName() {
            var expected = new NHOrder<User>(u => u.Name);
            var actual = new NHOrder<User>("Name");

            Assert.AreEqual(expected.ToString(), actual.ToString());
        }