开发者

Connect Linqpad to Entity Framework without using Odata

开发者 https://www.devze.com 2023-02-09 07:53 出处:网络
I\'m weak on my fundamentals here, so feel free to let me know if I\'m making any bizarre/false assumptions: I\'m working on a project with WCF data services and due to the limitations of Odata as a q

I'm weak on my fundamentals here, so feel free to let me know if I'm making any bizarre/false assumptions: I'm working on a project with WCF data services and due to the limitations of Odata as a querying langua开发者_C百科ge (e.g. no select distinct, joins are difficult, etc.), we're going to expose some service operations for common & non-trivial queries. So, I like using linqpad to get my linq code correct, and I'd like to use linqpad to target the entity framework directly (this is important: not through Odata). Is there a way I can target EF directly? Would it have to be on the same machine? What is the process?

Thanks!!!


You can target EF directly if you can point LINQPad to an assembly containing the typed ObjectContext that you created in Visual Studio. Click Add Connection and choose Entity Framework in the bottom listbox.

0

精彩评论

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

关注公众号