Modern Web Development with ASP.NET Core 3
Second Edition
An end to end guide covering the latest features of Visual Studio 2019, Blazor and Entity Framework
Ricardo Peres
BIRMINGHAM - MUMBAI
Modern Web Development with ASP.NET Core 3
Second Edition
Copyright 2020 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Richa Tripathi
Acquisition Editor: Alok Dhuri
Content Development Editor: Tiksha Lad
Senior Editor: Afshaan Khan
Technical Editor: Gaurav Gala
Copy Editor: Safis Editing
Project Coordinator: Deeksha Thakkar
Proofreader: Safis Editing
Indexer: Pratik Shirodkar
Production Designer: Alishon Mendonsa
First published: November 2017
Second edition: June 2020
Production reference: 1240620
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78961-976-8
www.packt.com
I would like to thank my son, Francisco, and daughter, Madalena, for all their love; they are the reason why I wrote this book.
Big thanks to Guilherme Castela and Pedro Janurio: the best of friends. I couldn't have done it without you guys!
In memory of my parents, Irene and Jorge Peres, with love and "saudades."
Packt.com
Subscribe to our online digital library for full access to over 7,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Fully searchable for easy access to vital information
Copy and paste, print, and bookmark content
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packt.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at customercare@packtpub.com for more details.
At www.packt.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Contributors
About the author
Ricardo Peres is a Portuguese developer, blogger, and book author and is currently a team leader at Dixons Carphone. He has over 20 years of experience in software development and his interests include distributed systems, architectures, design patterns, and .NET development. He won the Microsoft MVP award in 2015 and has held this title up to 2020.
He also authored Entity Framework Core CookbookSecond Edition and Mastering ASP.NET Core 2.0, and was a technical reviewer for Learning NHibernate 4 for Packt. He also contributed to Syncfusion's Succinctly collection, with titles on .NET development.
Ricardo maintains a blogDevelopment With A Dotwhere he writes about technical issues. You can catch up with him on Twitter at @rjperes75.
About the reviewers
Alvin Ashcraft is a developer who lives near Philadelphia. He has spent his 25-year career building software with C#, Visual Studio, WPF, ASP.NET , and more. He has been awarded the Microsoft MVP title nine times. You can find his daily links for .NET developers on his blog, Morning Dew. He works as a principal software engineer for Allscripts, building healthcare software. He was previously employed by software companies, including Oracle. He has reviewed other titles for Packt Publishing, including C# 8 and .NET Core 3 Projects Using Azure, Mastering Entity Framework Core 2.0, and LearnASP.NETCore 3.
Prakash Tripathi is a technical manager by profession and a speaker and author by passion. He has extensive experience in the design, development, maintenance, and support of enterprise applications, primarily using Microsoft technologies and platforms. He is active in technical communities and has been awarded the Microsoft MVP title four times in a row since 2016. He holds a master's degree in computer applications from MANIT Bhopal, India.
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Preface
In this book, we will discuss the new and latest features that have been added by Microsoft to ASP.NET Core 3.
We will delve deep into the applications and understand how to apply them for the various new tools that have been introduced. We will be looking at Blazor, gRPC, the dotnet tools, error handling methods, and Razor Pages. We have so many new topics to look at this time, so it is going to be one hell of a joyride. Sit back and enjoy!
Who this book is for
If you are a developer with basic knowledge of the ASP.NET MVC framework and want to build powerful applications, then this book is for you. Developers who want to explore the latest changes in ASP.NET Core 3.0 to build professional-level applications will also find this book useful. Familiarity with C#, ASP.NET Core, HTML, and CSS is expected in order to get the most out of this book.
What this book covers
, Getting Started with ASP.NET Core, e xplains the very basics of .NET and ASP.NET Core, including the MVC pattern, which is the typical usage pattern of ASP.NET Core.
, Configuration , presents you with the configuration options available to .NET/ASP.NET Core developers.
Next page