CHF23.90
Download est disponible immédiatement
In just 24 sessions of one hour or less, Sams Teach Yourself ASP.NET Core in 24 Hours, will help you build professional-quality, cloud-based, web-connected solutions with ASP.NET Core. This book's straightforward, step-by-step approach guides you from the basics to advanced techniques, using practical examples to help you make the most of Microsoft's radically revamped ASP.NET Core framework. ASP.NET Program Manager Jeffrey T. Fritz guides you from jumpstarting development with templates to implementing cutting-edge security and containerization. Every lesson builds on what you've already learned, giving you a rock-solid foundation for real-world success.
Step-by-step instructions carefully walk you through the most common ASP.NET Core tasks and techniques Practical, hands-on examples show you how to apply what you learn Notes and Tips point out shortcuts, solutions, and problems to avoid
Learn how to...
Auteur
Jeffrey T. Fritz is a long time web developer with ASP, ASP.NET, and now ASP.NET Core. He loves the challenge of building web applications that look amazing while at the same time performing like an installed application. The browser is his bane and his best friend, as he has built applications that work with every browser going back as far as Internet Explorer 4.
Jeff is a senior program manager on the .NET team responsible for the creation of the ASP.NET Core and .NET Core frameworks, and has taught several thousands of developers how to build better applications with Microsoft's ASP.NET frameworks. Previously, he was a developer advocate for Telerik where he specialized in their AJAX Control Toolkit. Jeff's proposals and designs led to the development of dozens of controls that many developers use daily. Jeff holds a bachelor of science degree in Management Sciences and Information Systems from the Pennsylvania State University.
An avid social media contributor, Jeff would love to hear from you on Twitter at @csharpfritz and you can follow his current coding adventures on his blog at www.jeffreyfritz.com.
Contenu
Introduction 1 HOUR 1: Introducing ASP.NET Core 7 What Is ASP.NET? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Why Should You Program in ASP.NET? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Significant Changes in ASP.NET Core . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Assumptions and Definitions in This Book . . . . . . . . . . . . . . . . . . . . . . . . . 13 Introducing the Sample Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Workshop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 HOUR 2: Setting Up Your Work Environment for ASP.NET Core 17 Four Versions of Visual Studio: Where Do I Start? . . . . . . . . . . . . . . . . . . . . 17 Installing Development Tools on Non-Windows Operating Systems . . . . . . . 20 Introducing the dotnet Command-Line Tool . . . . . . . . . . . . . . . . . . . . . . . 24 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Workshop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 HOUR 3: Exploring the New Project Templates 31 Getting Started with Visual Studio 2017 . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 The wwwroot Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Getting Started with Visual Studio Code . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Workshop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 HOUR 4: Defining ASP.NET Core Configuration 45 Introducing Our Sample Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Getting Started with Server-Side Configuration . . . . . . . . . . . . . . . . . . . . . . 45 Fundamentals of .NET Application Structure . . . . . . . . . . . . . . . . . . . . . . . 46 Managing and Referencing NuGet Packages . . . . . . . . . . . . . . . . . . . . . . . 54 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Workshop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 HOUR 5: Configuring the Service with the Startup Class 61 Introducing the Startup Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Workshop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 HOUR 6: Configuring Your Application 75 Writing Configuration Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Workshop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 HOUR 7: Accessing Your Data with Entity Framework Core 87 Getting Started with Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 Workshop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . …