LINQ to SQL connectionstring

前端 未结 6 2205
南旧
南旧 2020-12-09 22:29

I have an application that I want to be able to configure the connection string for my LINQ to SQL. I\'ve tried so many different ways but cannot seem to get it working. I w

6条回答
  •  庸人自扰
    2020-12-09 23:09

    You should change it in app.config. The reason it works without is that the LINQ2SQL designer creates a fallback to the connection string used when designing the DBML. If you define a connection string in app.config that is used instead.

提交回复
热议问题