No connection string named could be found in the application config file

前端 未结 9 1160
时光取名叫无心
时光取名叫无心 2020-12-29 06:54

I\'m using EF and generated .EDMX from it but then I only wanted it to be used for automated generation of Class Files.

I then used the Class Files to create a Enti

相关标签:
9条回答
  • 2020-12-29 07:21

    Copy and paste the connectionstring to your WEBAPI Project web.config file will solve the issue.

    0 讨论(0)
  • 2020-12-29 07:24

    It's dumb, but I had this error that was fixed by a Rebuild All !!
    Might as well have turned it off and on again....

    0 讨论(0)
  • 2020-12-29 07:29

    The easiest solution:

    Remove current edmx file and related connection string in app.config and add Edmx item with same name as previous again.

    this worked for me.

    0 讨论(0)
提交回复
热议问题