Book Image

Getting Started with ASP.NET Core MVC [Video]

By : Mohammad M Rahman
Book Image

Getting Started with ASP.NET Core MVC [Video]

By: Mohammad M Rahman

Overview of this book

The latest web development framework from Microsoft is ASP.NET Core. It is blazingly fast, cross-platform, and cloud-ready. Microsoft has done groundbreaking redesigns to ASP.NET Core and so lots of new concepts were introduced along with it. In this course, we’ll take a look at them while creating a website from scratch. In this video course, you’ll learn how to do the basic setup for the project, and then we’ll take a dive into the concept of the MVC pattern. You’ll learn about models, views, and controllers in detail. You will see the new concept of middleware and it will be demystified. Dependency Injection (DI) is now native to ASP.NET Core MVC and comes already wired up. You will learn to use DI with ease. Routing is central to ASP.NET Core MVC and there is a dedicated section for learning all that you need to know so that you can create effective routing for your site. We'll discuss the Razor syntax for UI programming and work with the Entity Framework core and create a Database in the SQLLocalDb which is the new developer friendly Database server around in the block. Just relax and watch this video as this course will take you inside the world of ASP.NET Core MVC and learn effortlessly all the critical and complex concepts without breaking any sweat. ASP.NET core MVC is made fun and easy here. Tackle any projects armed with the knowledge gained from this course with confidence. All the code and supporting files for this course are available on GitHub at https://github.com/packtpublishing/getting-started-with-asp.net-core-mvc-v- This course uses ASP.NET Core MVC, while not the latest version available, it provides relevant and informative content for legacy users of ASP.NET Core MVC.
Table of Contents (8 chapters)
Chapter 6
Models
Content Locked
Section 9
Setting Up DI for Mock Repository
The aim of this video is to set up Dependency Injection for the Mock Repository. - See how we have broken the SOLID principle - Use Dependency Injection in the constructor - Add the correct service registration code for the DI to happen