سؤال

There are two entitySets Categories and products in a url.I want to get the products associated with the category.Also only 'Name' Property of Categories table and only 'Product_Id' Property of Products table should be returned.

What will be the OData Specific URL for the same?

هل كانت مفيدة؟

المحلول 2

This is correct URL to do the same

http://rootURI/Categories?$select=Name,Products/Product_Id&$expand=Products

نصائح أخرى

You can try the following URL: http://host/Categories?$select=Name&$expand=Products($select=Product_Id)

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top