See parts 1 and 2 and 3 and 4 for the previous steps. Introduction In previous parts we covered how to set up the database, how our controllers and views are structured, how our services worked, and how to seed the database with some initial data. In this part…
See parts 1 and 2 and 3 for the previous steps. Introduction In previous parts we covered how to set up the database, how our controllers and views are structured, and how our services worked. In this part we'll cover details on how to seed the database with…
In any web application it's important to handle errors gracefully. This is especially true in a production environment where you want to provide a good user experience and not expose any sensitive information. In this article we'll look at how to handle errors…
You can find all the source code for the blog posts on GitHub Parts 1 & 2 of the series on adding Entity Framework to a .NET Core project. Part 1 can be found here. Part 2 can be found here. Introduction In the previous parts we set up the database and the…
You can find all the source code for the blog posts on GitHub Part 2 of the series on adding Entity Framework to a .NET Core project. Part 1 can be found here. Introduction In the previous post, we set up the database and the context for our blog posts. In…
Imtroduction In this post, I will show you how to create a C# client for the Umami reporting API. This is a simple example that demonstrates how to authenticate with the API and retrieve data from it. You can find all the source code for this on my GitHub…
ImageSharp is a powerful image processing library that allows you to manipulate images in a variety of ways. ImageSharp.Web is an extension of ImageSharp that provides additional functionality for working with images in ASP.NET Core applications. In this…
Caching is an important technique to both improve user experience by loading content faster and to reduce the load on your server. In this article I'll show you how to use the built-in caching features of ASP.NET Core with HTMX to cache content on the client…
Buckle in because this will be a long one! You can see parts 2 and 3 here and here. Introduction While I've been happy with my file based approach to blogging, as an excercise I decided to move to using Postgres for storing blog posts and comments. In this…
Now that I have a bunch of blog posts the home page was getting rather length so I decided to add a paging mechanism for blog posts. This goes along with adding full caching for blog posts to make this a quick and efficient site. See the Blog Service source…