public override string ToString() { var queryParser = FetchXmlQueryParserLoader.CreateFetchXmlQueryParser(); var queryModel = queryParser.GetParsedQuery(_expression); var queryMetadata = FetchXmlQueryModelVisitor.GetQueryMetadata(queryModel); var fetchXml = queryMetadata.GetFetchXmlQuery(); return(fetchXml); }
protected FetchXmlSet <T> CreateQuery <T>() { EntityModelType entityModelType = _modelMetadataRepository.AddModelMetadata <T>(); FetchXmlSet <T> set = new FetchXmlSet <T>(entityModelType.EntityLogicalName, FetchXmlQueryParserLoader.CreateFetchXmlQueryParser(), _fetchXmlQueryExecutor); return(set); }