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

后端 未结 6 892
梦毁少年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条回答
  •  囚心锁ツ
    2020-11-30 23:54

    I fixed this by changing EntityClient back to SqlClient, even though I was using Entity Framework.

    So my complete connection string was in the format:

    
    

提交回复
热议问题