Top .NET Tutorials in 2018
Visual Studio Magazine's stable of expert programmers this year wrote code-laden, hands-on tutorials ranging from traditional topics such as ASP.NET MVC to cutting-edge Blazor to Microsoft's new direction: .NET Core.
In case you missed some of this valuable content, here's a review of the top 10 .NET-centric tutorials and advice columns we published this year.
1. How to Query JSON Data with SQL Server 2016
Dino Esposito explains JSON-to-rowset native support in SQL Server 2016 and provides a realistic perspective of data query when you have JSON data stored in the database.
2. Converting Your ASP.NET Web Forms Application to ASP.NET MVC
There are a lot of Web Forms applications out there ... but the future belongs to MVC. Here's Peter Vogel's advice on what to do about that.
3. Creating Reusable View Components in ASP.NET Core
ASP.NET Core lets you bundle up business functionality along with its related UI into a view component that you can reuse in throughout your application.
4. High Performance Object-Oriented Data Access with Dapper
Entity Framework is fabulous ... but it does impose some overhead. If you like working with data in an O-O kind of way but feel the "need for speed," then you should be looking at Dapper.
5. Validating JSON with JSON Schema
Once you've created a JSON Schema that describes a JSON document, you can use it both in Visual Studio -- to provide guidance when creating JSON documents -- and in your code to validate the messages you're receiving.
6. Leveraging Raw SQL in Entity Framework Core
The ability to use SQL with Entity Framework Core has always been a cool feature. There's a new feature in Entity Framework Core that opens the door for whole new set of SQL-related functionality.
7. Introducing the .NET Core Unit Testing Framework (or: Why xUnit?)
There's a new kid in the Visual Studio testing environment, though it's only for your .NET Core projects. You don't have to use it, but here are some reasons you'll want to.
8. The Case Against Zero-Defect Software
Testing is a necessary but not a value-added task. To put it another way, while testing is something we have to do, our users would be just as happy if we could produce quality software without it. Understanding that leads to a realistic approach to testing.
9. Defining JSON Messages with JSON Schema
If you're building a RESTful Web service, you can provide both guidance and control around the JSON messages your service works with by replacing documentation with JSON Schemas.
10. Invoking and Sharing View Components in ASP.NET Core
View components let you create reusable chunks of business logic coupled with a UI in multiple places in your application ... and then let you share that logic across multiple projects. Here's how to invoke them and share them.
And Then There's Blazor
1. How to Consume Web APIs in Blazor
Chris Sainty provides hands-on code samples on how to use Web APIs to interact with Blazor, an experimental framework from the ASP.NET team that allows developers to write C# and Razor code and have it run in the browser via WebAssembly.
3. Your First Blazor App
Blazor is the Microsoft toolset that exploits the WebAssembly standard to let you write C# code that will run in your browser. Here's how to set up Visual Studio 2017 and create your first app.
4. Blazor: Working with Events
Any tutorial topics you'd like to see Visual Studio Magazine cover in 2019? Let us know in the reader comments section of this article or in an e-mail.
David Ramel is an editor and writer for Converge360.