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
Other Posts you might also like