Connection string hell in .NET / LINQ-SQL / ASP.NET

后端 未结 13 1105
渐次进展
渐次进展 2021-01-30 14:29

I have a web application that comprises the following:

  • A web project (with a web.config file containing a connection string - but no data access code in the web pr
13条回答
  •  时光说笑
    2021-01-30 14:41

    How about defining a ConnectionFactory object, that takes an enum as a parameter and returns a fully-formed connection object?

提交回复
热议问题