开发者

Expose Azure Table Storage as OData

开发者 https://www.devze.com 2023-03-16 23:23 出处:网络
I have an table in the Azure Table Storage populated with different implementations of the base TableSer开发者_运维知识库viceEntity. Does anybody howto expose this through OData? Are there some best p

I have an table in the Azure Table Storage populated with different implementations of the base TableSer开发者_运维知识库viceEntity. Does anybody howto expose this through OData? Are there some best practices available?


There is another solutation as well. Might be more complex but I use it it in one off my projects.

I have a table that has multiple different TableServiceEntities. But when I query the table, I .take(100) for example, I want all the different types at once.

This link has helped me quite a bit:

http://www.wintellect.com/Articles/Working%20with%20Azure%20Tables%20with%20Multiple%20Entity%20Schemas%20by%20Jeffrey%20Richter.pdf


the answer can be found in this article: How to access table storage entities without knowing the schema . Overriding the ReadingEntity event on the TableServiceContext will give you the opportunity to map the unknown datatypes to the available types. The article shows the exact code too.

0

精彩评论

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