Entity Framework UnintentionalCodeFirstException

后端 未结 2 1548
走了就别回头了
走了就别回头了 2020-12-16 09:40

I have a MVC 4 project set up and generated all the model classes using Entity Framework. Then I added a class and named it same as \"MyProjectEntities\" class and made it p

2条回答
  •  无人及你
    2020-12-16 10:23

    You need to provide the correct connection string. Not just the normal "Data Source=" type strings.

    You will have a connection string that starts with "metadata=" in your config file, use that one.

提交回复
热议问题