Code generated using the T4 templates for Database First

Error message:

Code generated using the T4 templates for Database First and Model First development may not work correctly if used in Code First mode. To continue using Database First or Model First ensure that the Entity Framework connection string is specified in the config file of executing application. To use these classes, that were generated from Database First or Model First, with Code First add any additional configuration using attributes or the DbModelBuilder API and then remove the code that throws this exception. 

 

resolve method:

复制EF下App.config中的数据库连接字符串到项目Web.config文件中。

posted on 2013-08-01 20:46  cw_volcano  阅读(676)  评论(0编辑  收藏  举报