例外:不支持关键字:元数据

时间:2018-07-04 12:40:35

标签: c# asp.net entity-framework-6

尝试执行Roles.AddUserToRole(username,rolename)时出现上述错误

这是我的连接字符串

<add name="HelpDeskEntities" connectionString="metadata=res://*/DBModel.csdl|res://*/DBModel.ssdl|res://*/DBModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=(LocalDb)\MSSQLLocalDB;attachdbfilename=|DataDirectory|\aspnet-desteahelpdesk-20180515114739.mdf;initial catalog=aspnet-desteahelpdesk-0180515114739;integrated security=True;multipleactiveresultsets=True;application name=EntityFramework&quot;" providerName="System.Data.EntityClient" />

0 个答案:

没有答案