Keyword Not Supported: Metadata

后端 未结 11 1150
星月不相逢
星月不相逢 2020-12-01 04:34

This line:

WebSecurity.InitializeDatabaseConnection(connectionStringName: \"DefaultConnection\", userTableName: \"UserProfile\", userIdColumn: \"UserID\", us         


        
11条回答
  •  心在旅途
    2020-12-01 04:41

    When this happened to me it was because the connection string had:

    providerName="System.Data.SqlClient"
    

    but it should be:

    providerName="System.Data.EntityClient"
    

    because as was said by the other answer, it is an EF connection string.

提交回复
热议问题