Keyword not supported: “data source” initializing Entity Framework Context

后端 未结 6 890
梦毁少年i
梦毁少年i 2020-11-30 23:38

I\'m initializing Entity Framework Object context, and this gives me the keyword not supported error:

metadata=res://*/MainDB.csdl|res://*/MainDB.ssdl|res://*/

6条回答
  •  猫巷女王i
    2020-12-01 00:11

    Make sure you have Data Source and not DataSource in your connection string. The space is important. Trust me. I'm an idiot.

提交回复
热议问题