_ViewImports.cshtml is a hidden page that is included at the top of each of the other pages. It is commonly used to add
using statements so all code has access to the correct namespaces and assemblies.
Our data project only uses the default include statements of this feature.
The file _ViewImports.cshtml is open. This hidden page is included at the top of each of the other cshtml pages.
Sign up to start coding