: Philip Japikse, Kevin Grossnicklaus, Ben Dewey
: Building Web Applications with Visual Studio 2017 Using .NET Core and Modern JavaScript Frameworks
: Apress
: 9781484224786
: 1
: CHF 47.00
:
: Informatik
: English
: 418
: Wasserzeichen/DRM
: PC/MAC/eReader/Tablet
: PDF

Learn how to build web applications from three Microsoft MVPs. After building the data application layer using Entity Framework Core and a RESTful service using ASP.NET Core, you will then build the client side web application three ways: first, using ASP.NET Core, then using Angular 2, and, finally, using React. You will be able to compare and contrast these UI frameworks and select the best one for your needs.

.NET Core is a complete rewrite of the popular .NET and its related frameworks. While many concepts are similar between .NET Core and the .NET 4.6 framework, there are revolutionary changes as well, including updates to Entity Framework Core and ASP.NET Core. The first section of this book covers the three main parts of building applications with C#: Entity Framework, ASP.NET Core Services, and ASP.NET Core Web Applications. 

Wha You'll Learn

    < i>Understand the fundamentals of .NET Core and what that means to the traditional .NET developer
  • Build a data access layer with Entity Framework Core, a RESTful service with ASP.NET Core MVC, and a website with ASP.NET Core MVC and Bootstrap
  • Automat many build tasks with client side build utilities

Who This Book Is For
< >
Intermediate to advanced .NET developers


An international speaker, Microsoft MVP, ASPInsider, MCSD, CSM, and CSP, and a passionate member of the developer community,Phil Japikse has been working with .NET since the first betas, developing software for over 30 years, and heavily involved in the agile community since 2005. Phil is co-author of best selling 'C# and the .NET 4.6 Framework', the Lead Director for the Cincinnati .NET User's Group and the Cincinnati Software Architect Group, co-hosts the Hallway Conversations podcast, founded the Cincinnati Day of Agile, and volunteers for the National Ski Patrol. Phil is also a published author with LinkedIn Learning. During the day, Phil works as an Enterprise Consultant and Agile Coach for large to medium firms throughout the US. Phil enjoys to learn new tech and is always striving to improve his craft. You can follow Phil on his blog, or on Twitter @skimedic.

Kevin Grossnicklaus At one point in his career Kevin was the youngster on most development teams.  He got his start developing with Visual Studio and managed .NET code during the early beta cycles in 2001.  In 2009, Kevin started his own software product development firm called ArchitectNow (www.architectnow.net).  At ArchitectNow, Kevin and his team specialize in a wide variety of tools while delivering applications across a variety of cloud and mobile platforms.   Born in rural Nebraska, Kevin has spent the last 20 years in St. Louis, Missouri where he lives with his wife Lynda and their three daughters: Alexis, Emily, and Hanna. He is an avid guitar player, fly fisherman, home brewer, and gamer (including everything from retro arcade games, to board games, to role playing games).  When not spending time on any of those hobbies he waits patiently for a second season of Firefly.

Ben Dewey is a former Microsoft MVP, and published author with over 18 years of experience writing applications and continually striving to create SOLID applications of the highest craftsmanship while paying special attention to clean User Experiences (UX). Ben is currently Creative Director at Tallan, Inc. and consults regularly in New York City and around the country on web- and cloud-based technologies. He has also worked to deploy numerous high-quality, engaging apps to the Windows Store. When he's not consulting, Ben is busy training, mentoring, blogging, and speaking at various conferences and community events around the country. Outside of work, Ben spends most of his time playing with his three young kids, working around the house, or, if it's windy, kite surfing. You can find Ben online on Twitter (@bendewey), StackOverflow, GitHub, or on his blog at http://bendewey.com/.
Contents at a Glance5
Contents6
About the Authors17
About the Technical Reviewer19
Acknowledgments20
Introduction21
Part I: Visual Studio 2017 and .NET Core30
Chapter 1: Introducing Entity Framework Core31
The SpyStore Database32
Installing Visual Studio 2017 and .NET Core33
Installing Visual Studio33
Installing the .NET Core SDKs34
The .NET Core Command Line Interface (CLI)36
Creating and Configuring the Solution and Projects36
Creating the Solution and Projects36
Changes to the Project Files39
Updating the Target Framework39
Working with NuGet Packages41
Manually Restoring Packages41
Restoring Packages from the CLI41
Restoring with Package Manager Console41
Adding the Project References42
Adding Entity Framework Core42
Adding EF Packages to the SpyStore.DAL Project42
Installing/Updating Packages Using the SpyStore.DAL.csproj File44
Adding EF Packages to the SpyStore.Models Project44
Adding Packages to the SpyStore.DAL.Tests Project45
Building the Foundation45
Understanding the DbContext Class45
Creating the StoreContext Class47
Understanding the DbSet47
Understanding the DbSet47
4847
Connection Resiliency49
Custom Connection Strategies49
Building the Base Entity Class50
Entity Framework Conventions51
Data Annotations Support in EF Core51
Adding Data Annotations to the EntityBase Class52
Adding the Category Model Class52
Adding the Categories DbSet54
Migrations54
Executing EF .NET CLI Commands55
Creating the First Migration55
Removing a Migration57
Applying the Migration57
Viewing the Database57
Creating Migration SQL Scripts58
Understanding CRUD Operations Using Entity Framework59
Creating Records59
Reading Records59
No-Tracking Queries60
Updating Records60
Concurrency Checking60
Updating Using Entity State61
Deleting Records61
Deleting Using Entity State61
Unit Testing EF Core62
Creating the CategoryTests Class62
Creating and Running the First Test64
Testing EF CRUD Operations65
Test Adding a Category Record65
Test Retrieving All Category Records66
Test Updating a Category Record67
Test Deleting a Category Record Using Remove68
Test Deleting a Record Using EntityState68
Testing Concurrency Checking69
Adding the Core Repository Interface and Base Class69
Adding the IRepo Interface69
Adding the Base Repository71
Adding the Category Repository74
Summary75
Chapter 2: Building the Data Access Layer with Entity Framework Core77
The SpyStore Database77
Navigation Properties and Foreign Keys78
Handling Display Names79
Mixing EF with Stored Procedures and Functions79
Finishing the Model Classes80
Updating the Category Model80
Adding the Product Model80
Adding the Shopping Cart Record Model81
Adding the Order Model82
Adding the Order Detail Model82
Adding the Customer Model83
Updating the StoreContext84
Adding the DbSet84
Adding the DbSet84
Adding the DbSet84