public void TestEntityQueryBasicUsage() { WhereClip where = (!!(UserGroup._.ID > 0)) & (!(UserGroup._.Name == "teddy")); OrderByClip orderBy = UserGroup._.ID.Desc & UserGroup._.Name.Asc; Console.WriteLine(where.ToString()); Console.WriteLine(orderBy.ToString()); Console.WriteLine(PropertyItem.ParseExpressionByMetaData(where.ToString(), new PropertyToColumnMapHandler(SimplePropertyToColumn), "[", "]", "@")); Console.WriteLine(PropertyItem.ParseExpressionByMetaData(orderBy.ToString(), new PropertyToColumnMapHandler(SimplePropertyToColumn), "[", "]", "@")); Console.WriteLine(UserGroup._.ID.In(1, 2, 3)); Console.WriteLine(UserGroup._.ID.Between(2, 6)); }
public void OrderBy(OrderByClip orderBy) { DefaultOrderByExpression = (orderBy == null ? null : orderBy.ToString()); }