...
The major advantage of the EDMqueryMethod over the other EDMmethod types lies in the EDMquerySchema construct VIEW_ENTITY. The VIEW_ENTITY construct allows for definition of complex volatile entity types. These volatile entities may be instantiated and returned to the calling EDMqueryMethod as a QueryResult table. EDMqueryMethods are implemented as QUERY_FUNCTIONS in EDMquerySchemas.