实体框架5.0 Beta - 将提供一个DbContext代码生成模板? [英] Entity Framework 5.0 Beta - will a DbContext code generation template be provided?

查看:105
本文介绍了实体框架5.0 Beta - 将提供一个DbContext代码生成模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在工作一点,计划从EF 4.2 CTP转换到EF 5.0,而在VS11 + .NET 4.5中添加代码生成模板时,DbContext模板不再可用。任何人都会提供,如果有人可以使用,如果不是为什么(只是好奇)?



更新:



我在Enum教程中看到对DbContext模板的引用,但是在VS11项目中没有看到模板,目标是安装了具有EF5.0的.NET 4.5。我看到另外两个V5.0模板(EntityObject和Self-Tracking)。是否可能与其他安装冲突,像我的情况,实体框架4.2 CTP?我遇到了模板问题,VS不能在尝试EF 5.0时决定使用什么System.Data.Entity,默认为4.2。



更新2:



全新安装Windows Server 8 Beta,全新安装Visual Studio 11 Beta,仍然没有EF5 DbContext代码生成模板。没有安装EF 4.2和VS 2010的模板扩展,实际上也不是VS 2010。只是一个fyi ...



解决方案

我没有检查它本身,但根据这个实体框架发布和版本控制
将提供。



尝试使用 install-package EntityFramework -pre
安装EntityFramework 5 Beta 2,然后安装EF 5.x DbContext Generator for C#



请注意,从实体框架版本4.1版本,实体框架不是.NET的一部分,而是构建在.NET上。所以我认为任何相关的工具将在nuget或visualstudio画廊上单独发布。


I was working a bit ahead and planning for transition from EF 4.2 CTP to EF 5.0 and when "adding a code generation template" in VS11 + .NET 4.5 the DbContext template is no longer available. Any heads up on if one will be available and if not why (just curious)?

Update:

I see references to a DbContext template in the Enum tutorial, but yet I don't see the template in my VS11 project targeting .NET 4.5 with EF5.0 -pre installed. I see the other two V5.0 templates (EntityObject and Self-Tracking). Could it be a conflict with other installations, like in my case, Entity-Framework 4.2 CTP? I ran into template issues where VS couldn't decide what System.Data.Entity to use and defaulted to 4.2's when trying out EF 5.0.

Update 2:

Fresh install of Windows Server 8 Beta, with a fresh install of Visual Studio 11 Beta, still no EF5 DbContext code generation template. EF 4.2 and template extensions from VS 2010 are not installed, in fact neither is VS 2010. Just an fyi...

解决方案

I didn't check it myself, but according to this Entity Framework Releases and Versioning It will be provided.

Try to install EntityFramework 5 Beta 2 using install-package EntityFramework -pre and then install EF 5.x DbContext Generator for C#

Note that starting with the Entity Framework version 4.1 release, the Entity Framework is not part of.NET but is built on .NET. So I think that any related tools will be released separately on nuget or visualstudio gallery.

这篇关于实体框架5.0 Beta - 将提供一个DbContext代码生成模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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