Access web.config from separate Class Library?

前端 未结 6 1371
轻奢々
轻奢々 2020-12-16 15:01

I\'m looking for a good way to achieve the following:

I have a web application (MVC 3), with a separate Class Library that contains the back-end logic of a CMS that

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-16 15:50

    Since you are using the class library to the MVC web application, it is accessible to the class library also. No additional settings are needed. Even though the class library when built giving a separate dll, it is referenced in the current project. So the connection string will be available to the class library also.

提交回复
热议问题