Rick Strahl's Weblog  

Wind, waves, code and everything in between...
.NET • C# • Markdown • WPF • All Things Web
Contact   •   Articles   •   Products   •   Support   •   Advertise
Sponsored by:
West Wind WebSurge - Rest Client and Http Load Testing for Windows

New CODE Magazine Article: Getting down to Business with ASP.NET Core


:P
On this page:

The January/February 2017 issue of Code Magazine has an ASP.NET Core article of mine as the lead cover article:

Yay!

You can check out the magazine when it arrives, or you can take a look online on the CODE Magazine Site to read it there:

Two ways to approach ASP.NET Core

The article is a follow up to my previous Getting to the Core of ASP.NET Core Article article which took a very low level approach to describing how ASP.NET Core works from the ground up using command line tools and working its way up from the very basics to a simple Web application.

This new article takes a different approach and discusses how to build a more typical ASP.NET Core backend to an Angular front end application. The article focuses only on the backend (I'll cover the Angular 2 front end in a later article perhaps) and building a REST based service to provide the data to the Angular 2 front end.

The sample application is a mobile friendly Album Viewer Web application that you can check out here:

Here's what the app looks like in desktop mode:

and here in Mobile mode on a phone:

This CODE magazine article focuses entirely on the ASP.NET back end portion of the application and describes how to set up a new ASP.NET Core project, separate business and Web logic into separate projects. As with the last article the pace is such that I start at the very beginning with the basics and then build up from there. You'll see how to build up an entity model to return your data, deal with Entity Framework 7's different and more limiting features in a business object, and much more. I start with simple query results, go into more complex queries and updates that require more than a simple update. In short - the typical things you run into when you build a real world application. While the sample is fairly simple, it does highlight many real world issues that you run into.

In addition the article also points out a few side issues like ensuring your app can serve proper CORS content so you can test a Javascript front end application that runs on a different domain/port properly and setting very simple authentication without delving into the .NET Identity morass.

At the end I also demonstrate how to switch the database engine - I start with SQL Server and then switch to SqLite - and then move the entire application as is to a Mac and run the ASP.NET server without changes from there.

All in all this article covers a wide swath of features that you are very likely to deal with in even the simplest applications.

Check it out - I hope it'll be interesting and or useful to you in picking up ASP.NET Core.

Read a Magazine!

There aren't many magazines left around with so much online content around, but it sure is nice holding a paper copy in your hand sometimes. I still love the feel of reading an actual paper issue - especially if it has one of my own articles in there :-)

CODE has a special deal going for signing up for a subscription, so check it out

this post created with Markdown Monster
Posted in ASP.NET  ASP.NET  Angular  

The Voices of Reason


 

Kevin
January 12, 2017

# re: New CODE Magazine Article: Getting down to Business with ASP.NET Core

Awesome article. Thanks Rick

Aloha,

Kev


Mark
January 13, 2017

# re: New CODE Magazine Article: Getting down to Business with ASP.NET Core

My CODE subscription lapsed years ago. I just renewed it 😃


Gunther
January 17, 2017

# re: New CODE Magazine Article: Getting down to Business with ASP.NET Core

A timely article for me, working on my first Asp.NET Core app.
I'd be interested in a "How To..." article on deploying an Asp.NET Core app to an IIS server -- if you're looking for future topic ideas. 😃


Jeremiah
February 04, 2017

# re: New CODE Magazine Article: Getting down to Business with ASP.NET Core

Good stuff Rick. Curious whether you'd recommend for/against attempting to use this same architecture (.Net Core EF/API/Angular) with one exception: tying into an existing and much more complex MSSQL database with hundreds of stored procedures? Thanks!


Ross
February 17, 2017

# re: New CODE Magazine Article: Getting down to Business with ASP.NET Core

Great article. Was wondering when we can expect the next article featuring the Angular 2.0 front end discussion?


Rick Strahl
February 17, 2017

# re: New CODE Magazine Article: Getting down to Business with ASP.NET Core

Working on it now. It missed the current issue but we're shooting for the next one.


West Wind  © Rick Strahl, West Wind Technologies, 2005 - 2024