- What is the base class for a view?
It's RazorPage<T>, where the T generic type is dynamic by default.
- How can you inject services into a view?
Either by using the @inject declaration on a .cshtml file or by inheriting from the RazorPage<T> class and using constructor injection.
- What is a view location expander?
It's a component that can be used to tell ASP.NET Core where to look for the physical .cshtml files.
- What is a view layout?
It is similar to master pages in ASP.NET Classic. Essentially, it defines the layout, or structure, that different pages can use.
- What are partial views?
Partial views are similar to web user controls (.ascx files) in ASP.NET Classic...