使用LinqPad可以使用代码优先模型 [英] Is it possible to use LinqPad with a code-first model

查看:173
本文介绍了使用LinqPad可以使用代码优先模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去将 LinqPad 中的连接设置为具有EF模型的自定义程序集很容易。 Linqpad寻找一个基于 System.Data.Objects.ObjectContext 不存在

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

如何如果有的话,可以让他们的模型装配与LinqPad兼容。

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

推荐答案

现在,LINQPad不支持EF CTP代码优先:有一个功能请求这里

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

几乎可以肯定将来会添加支持 - 如果这个EF功能使它

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).

编辑:LINQPad 现在支持使用EF 4.1的代码优先

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

这篇关于使用LinqPad可以使用代码优先模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆