FromType() public method

public FromType ( string typeName ) : TypeSpec
typeName string
return TypeSpec
コード例 #1
0
ファイル: PomonaSession.cs プロジェクト: anthrax3/Pomona
        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));
        }
コード例 #2
0
 public TypeSpec GetClassMapping(Type type)
 {
     return(TypeMapper.FromType(type));
 }