private PomonaQuery ParseQuery(PomonaContext context, Type rootType, int?defaultPageSize = null) { var queryPropertyResolver = new QueryTypeResolver(TypeMapper); var queryExpressionParser = new QueryExpressionParser(queryPropertyResolver); var queryTransformer = new PomonaHttpQueryTransformer(TypeMapper, queryExpressionParser); var structuredType = (ResourceType)TypeMapper.FromType(rootType); return(queryTransformer.TransformRequest(context, structuredType, defaultPageSize)); }
public TypeSpec GetClassMapping(Type type) { return(TypeMapper.FromType(type)); }