小编Moh*_*sen的帖子

实体框架在本地工作,但不在azure上工作

我有一个在当地完美运作的网络项目.但是,当我在Azure上发布的网站中更改连接字符串以连接到SQL Azure上的数据库时,它将开始提供此错误.

System.Data.Entity.Infrastructure.UnintentionalCodeFirstException: 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 …
Run Code Online (Sandbox Code Playgroud)

sql azure entity-framework-4

4
推荐指数
1
解决办法
4650
查看次数

标签 统计

azure ×1

entity-framework-4 ×1

sql ×1