Is it possible to use LinqPad with a code-first model

ⅰ亾dé卋堺 提交于 2019-12-08 16:01:04

问题


In the past It's been easy to set a connection in LinqPad to a custom assembly that had EF model. Linqpad looks for a that is based on System.Data.Objects.ObjectContext which doesn't exist

How (if at all) does one make their model assembly compatible with LinqPad.?


回答1:


Right now, LINQPad does not support the EF CTP's code-first: there's a feature request here.

It's almost certain that support will be added in the future - if this EF feature makes it past CTP (and maybe sooner with sufficient demand).

Edit: LINQPad now supports code-first with EF 4.1.



来源:https://stackoverflow.com/questions/4469896/is-it-possible-to-use-linqpad-with-a-code-first-model

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!