开发者

Workaround/s to expose derived types' properties using OData

开发者 https://www.devze.com 2023-01-25 23:04 出处:网络
We want to expose the properties of our derived types with OData and we are using Entity Framework.But we always have the exception that we cannot access the navigation properties of those derived typ

We want to expose the properties of our derived types with OData and we are using Entity Framework. But we always have the exception that we cannot access the navigation properties of those derived types. We can't do it with service operations as well. Now, we are thinking if w开发者_JS百科e can customize the response just to show the properties of our derived entities particularly the navigation properties. What are the possible workarounds?


you can cast the base type collection entries to the derived type in odatav3 with this format

<root>/<base collection name>/<full namespace of derived type>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号