当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - Intercept the OData "query"

问题描述:

I would like to "intercept"/alter the OData query that's generated when using OData with the Web API.. but I'm not entirely sure of how to "extract" the generated query.. I assume that the OData filter,expands and more some how gets generated to some sort of expression tree or some sort of query.. and if that's the case, then that's the type of query I would like to be able to alter before its sent to the database as an SQL-command.

I have searched the net for some way of extracting the generated expression tree.. but hasn't be able to find sufficient information, so I was sort of hoping that someone here has some more insight of how the whole OData-"framework" works..

Any ideas of where to start?

分享给朋友:
您可能感兴趣的文章:
随机阅读: