问题描述
我试图按照本教程使用实体数据模型。结果
的结果
它告诉我打开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
推荐答案
打开,导航到属性窗口(按 [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的 - 默认代码生成被禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!