开发者

Specify namespaces for controller in web.config

开发者 https://www.devze.com 2023-02-27 08:01 出处:网络
So I was able to specify some name spaces for my razor pages in MVC3 using the web.config file. Is there a way to do thi开发者_运维百科s for the controller\'s as well so I don\'t have to keep typing

So I was able to specify some name spaces for my razor pages in MVC3 using the web.config file.

Is there a way to do thi开发者_运维百科s for the controller's as well so I don't have to keep typing using statements for commonly used ones from an external library?

Thanks.


Controllers are normal C# files.
Unlike VB.Net, there is no way to add using statements to the entire project.

0

精彩评论

暂无评论...
验证码 换一张
取 消