Visual Studio的 - 默认代码生成被禁用 [英] Visual Studio - Default code generation is disabled

查看:647
本文介绍了Visual Studio的 - 默认代码生成被禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图按照本教程使用实体数据模型。结果
http://www.entityframeworktutorial.net/create-first-simple-EDM.aspx 结果
它告诉我打开Model1.designer.cs文件。

我看到一堆C#代码,但我看到的是:

I am trying to follow this tutorial that uses the Entity Data Model.
http://www.entityframeworktutorial.net/create-first-simple-EDM.aspx
It tells me to open the Model1.designer.cs file.
I should see a bunch of C# code but all I see is:

// Default code generation is disabled for model 'c:\users\dewi jones\documents\visual studio 2012\Projects\dewi_test\dewi_test\Dewi_Model.edmx'. 
// To enable default code generation, change the value of the 'Code Generation Strategy' designer
// property to an alternate value. This property is available in the Properties Window when the model is
// open in the designer.



我试图使代码生成,但我无法弄清楚如何。我看不到它在项目属性:(
我新的Visual Basic和将不胜感激帮助。谢谢

I have tried to enable code generation but I can't figure out how. I can't see it in the project properties :( I am new to Visual basic and would greatly appreciate help. Thanks

推荐答案

打开模型浏览器窗口在Visual Studio中的实体模型,导航到属性窗口(按 [F4] ),并修改代码生成策略默认

Open the Model Browser Window of your entity model in Visual Studio, navigate to Properties window(hit [F4]) and change the Code Generation Strategy to Default

这篇关于Visual Studio的 - 默认代码生成被禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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