Book Image

ASP.NET Core Essentials

By : Shahed Chowdhuri
Book Image

ASP.NET Core Essentials

By: Shahed Chowdhuri

Overview of this book

<p>ASP.NET Core is the latest collection of Microsoft’s web application development technologies. When you’re trying to reach a broad spectrum of users with a robust web application, ASP.NET Core is there to help you build that application. With the ability to cater to users on desktop, tablet, or smartphone platforms, you can put together a solution that works well anywhere.</p> <p>This book is what you need to get started developing ASP.NET Core applications was quickly as possible; starting by introducing the software and how it can be used in today’s modern world of web applications and smartphone apps. Walking you through the benefits of a Web API to support both applications and mobile apps to give you a solid understanding of the tech to build upon as you see what ASP.NET Core can do for you.</p> <p>The book wraps up with practical guidelines for the use of database technologies, unit tests, security best practices, and cloud deployments for the real world.</p>
Table of Contents (15 chapters)
ASP.NET Core Essentials
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Chapter 3.  Understanding MVC

In previous chapter, we covered a quick refresher of MVC and its components in ASP.NET. In this chapter, we will go deeper into MVC in ASP.NET Core, which is MVC 6 while in beta.

Two common questions from developers are: How do I upgrade my older MVC projects to ASP.NET Core MVC? Is there an automatic migration process? Migrating from MVC 5 to the new MVC in ASP.NET Core involves a few manual steps, since there is no automatic migration process. You can copy all of your static client-side files into the wwwroot location and adjust any references to these files to refer to the correct location.

For server-side code, you can migrate over your models, views, and controllers without many changes. This chapter will cover what you need to know about each of the following areas:

  • Controllers

  • Views

  • Models

Parts of this chapter will be familiar to developers who have already worked with previous versions of ASP.NET MVC. We will go through some familiar material, while revealing...