简体   繁体   English

如何在VS2015中更改代码生成策略?

[英]how to change Code Generation Strategy in VS2015?

I am using VS2015 and running into following error, dont see any such property as Code Generation Strategy in my property window as shown in screen shot,how can I find this propery? 我正在使用VS2015并遇到以下错误,如屏幕截图所示,在我的属性窗口中没有看到任何Code Generation Strategy的属性,如何找到此属性?

// T4 code generation is enabled for model 'C:\Users\username\documents\visual studio 2015\Projects\EFdemo\EFdemo\EmployeeModel.edmx'. 
// To enable legacy code generation, change the value of the 'Code Generation Strategy' designer
// property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model
// is open in the designer

在此处输入图片说明

  1. Open your designer (xxxxx.edmx) 打开设计器(xxxxx.edmx)
  2. Click on the background of the designer 点击设计师的背景
  3. See the Properties windows. 请参阅属性窗口。 You will find it here 你会在这里找到它

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM