Bootstrapping ASP.NET Core - Week 3

In Part 2 of our series, we used Swagger to define a simple REST API for our dog walking application. In this installment, we are going to use Entity Framework Core to work with a database from our ASP.NET Core application. What is Entity Framework Core? Entity Framework Core is an object-relational mapper (O/RM) that enables .NET developers to work with a database using .NET objects. It eliminates the need for most of the data-access code that developers usually need to write - MSFT documentation Like ASP.NET Core, EF Core is a rewrite of the previous version…

read more...

Bootstrapping ASP.NET Core - Week 2

Creating a REST API with MVC and Swagger In our last post we navigated around an empty ASP.NET Core application. This week we are going to start adding familiar MVC and WebAPI style routes and controllers. Along the way we will compare the starter template to the project we are building from scratch creating and discover how Swagger can help us easily document our REST API. We will also dig into ASP.NET Core configuration options and managing different environments in our application. Code is here: https://github.com/hansonio/fido/tree/part2 Demo application is here: http://walkfido.…

read more...

Bootstrapping ASP.NET Core - Part 1

In the first technical post in the Bootstrapping ASP.NET Core series we take a look at what makes up a new ASP.NET Core project from install to producing simple HTTP Responses and the building blocks we'll use to build Walk Fido, a dog walking application. You can read the introduction to this project here Learning to Crawl Before Walking My oldest son has always been somebody who just does things his own way. From what he reads, how he learns music or even how he chose to play soccer when he was a kid. My wife and I…

read more...