Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

Relations between two EdmEntityType in oData Web.API

$
0
0

Hi
I'm using web.api oData and greate my data model with dynamic with EdmEntityType. I can read the oData-Stream with Excel Power Query, but have to add the relations between the EdmEntityTypes/Tables.
I'm now testing with EdmNavigationPropertyInfo, but can't set the info in model in that way, that Power Query could read the relations.
Simple example:
EdmEntityType Product and ProductGroup
Type Product
ProductID
ProductName
FK_ProductGroupID

Type ProductGroup
PK_ProductGroupID
ProductGroupName

I can read this two types and connect Product/FK_ProductGroupID with ProductGroup/PK_ProductGroupID by hand.
Can I create this relationship directly in model? How can I define that die FK-Field und PK-Field are connected?

Best regards
Christoph


Viewing all articles
Browse latest Browse all 4850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>