Ryan Sampson
Ryan Sampson

Reputation: 6817

Specify namespaces for controller in web.config

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 this 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.

Upvotes: 2

Views: 363

Answers (1)

SLaks
SLaks

Reputation: 887195

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

Upvotes: 6

Related Questions