Ejemplo n.º 1
0
        protected Query.Query GetQueryById(Type modelType)
        {
            var mapping = ModelMappingManager.MappingFor(modelType);
            var source  = mapping.Configuration.Repository().All();

            return(source != null
                ? QueryParser.Parse(modelType, source, Request["q"])
                : QueryParser.Empty(modelType));
        }