Book Image

ASP.NET Core 2 Fundamentals

By : Onur Gumus, Mugilan T. S. Ragupathi
Book Image

ASP.NET Core 2 Fundamentals

By: Onur Gumus, Mugilan T. S. Ragupathi

Overview of this book

The book sets the stage with an introduction to web applications and helps you build an understanding of the tried-and-true MVC architecture. You learn all about views, from what is the Razor view engine to tagging helpers. You gain insight into what models are, how to bind them, and how to migrate database using the correct model. As you get comfortable with the world of ASP.NET, you learn about validation and routing. You also learn the advanced concepts, such as designing Rest Buy (a RESTful shopping cart application), creating entities for it, and creating EF context and migrations. By the time you are done reading the book, you will be able to optimally use ASP.NET to develop, unit test, and deploy applications like a pro.
Table of Contents (14 chapters)

Summary


In this chapter, you learned what a view engine is and how to build a view using the Razor view engine. We also discussed the different programming constructs that you can make use of in Razor to produce the desired HTML output. Then, you learned about layout and how to provide a consistent site structure across all of the pages in your ASP.NET MVC application. Later in the chapter, we discussed how to promote reusability using partial views, with an example. Finally, you learned how to use Tag Helpers to produce clean HTML.