LINQ Confusion - Database not persisting after the application closes?

后端 未结 1 620
遇见更好的自我
遇见更好的自我 2021-01-14 11:28

I\'m making a WinForms app in C#. When I go to create my database object, I\'m presented with two options:

  • Local Database
  • Service-based Database
相关标签:
1条回答
  • 2021-01-14 12:09

    When you compile, the old database gets erased and a new one is copied to the bin folder. Therefore try link (using linq) to the database in the bin folder. Try change your connectionString.

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