How to connect to a MySQL database with C# in ASP.NET Core using Dapper and ADO.NET
How to auto create a database and tables in MySQL with C#, ASP.NET Core and the Dapper ORM
How to build a .NET 7.0 CRUD API with Dapper and a MySQL database.
How to perform CRUD operations on a PostgreSQL database in C# with a Dapper Repository
Custom JWT authentication without Identity in ASP.NET Core and C#. Includes example client apps built with Angular, React, Vue & Blazor.
How to connect to a PostgreSQL database with C# in ASP.NET Core using Dapper and ADO.NET
How to auto create a database and tables in PostgreSQL with C#, ASP.NET Core and the Dapper ORM
Published: March 23 2023
Last updated: April 13 2023
How to build a .NET 7.0 CRUD API with Dapper and a PostgreSQL database.
Published: February 15 2023
How to fix this SSL connection error when connecting to SQL Server from ASP.NET Core
Published: February 15 2023
How to connect to a SQL Server database in ASP.NET Core with Dapper and ADO.NET
Published: February 14 2023
Last updated: April 13 2023
How to build a .NET 7.0 CRUD API with Dapper and a SQL Server database.
Published: February 14 2023
How to auto create a database and tables in SQL Server with ASP.NET Core and Dapper
Published: February 13 2023
How to connect to a SQLite database in ASP.NET Core with Dapper and ADO.NET
Published: February 10 2023
Last updated: April 13 2023
How to build a .NET 7.0 CRUD API with Dapper and a SQLite database.
Published: February 10 2023
How to convert enum properties to strings in ASP.NET Core API responses.
Published: February 10 2023
How to auto create database tables on startup in ASP.NET Core with Dapper
Published: January 18 2023
Tutorial on how to build a .NET 7.0 API that supports Facebook Authentication.
Published: November 28 2022
Last updated: January 05 2023
How to quickly apply the Authorize Attribute to all controllers by default in .NET 6.0
Published: November 22 2022
This post shows how to connect a .NET 6 API to an InMemory database for testing with Entity Framework Core.
Published: September 05 2022
This post shows goes through the steps to connect a .NET 6 API to SQLite using Entity Framework Core, and automatically create/update the SQLite database from code using EF Core migrations.
This post shows goes through the steps to connect a .NET 6 API to PostgreSQL using Entity Framework Core, and automatically create/update the PostgreSQL database from code using EF Core migrations.
This post shows goes through the steps to connect a .NET 6 API to MySQL using Entity Framework Core, and automatically create/update the MySQL database from code using EF Core migrations.
This post shows goes through the steps to connect a .NET 6 API to SQL Server using Entity Framework Core, and automatically create/update the SQL Server database from code using EF Core migrations.
Tutorial on how to build a .NET 6.0 API that supports CRUD operations.
This is a quick example of how to send an email in .NET 6.0 using the MailKit email client library.
Published: February 26 2022
How to build a boilerplate .NET 6.0 API that supports email sign up, verification, authentication, role based access control, forgot password, reset password and account management (CRUD) functionality.
Published: February 18 2022
How to build an API with role based authorization / access control in .NET 6.0 & C#. Includes example client apps built with Angular, React and Vue.
Published: February 04 2022
A step by step tutorial on how to build a minimal .NET 6.0 API from scratch with a couple of example endpoints/routes, with details on every line of code and configuration to show how it all fits together.
Published: January 07 2022
How to build a .NET 6.0 API that supports user registration, login with JWT authentication and CRUD operations. Includes example client apps built with Angular, Blazor, React & Vue.
Published: December 20 2021
How to implement Basic HTTP Authentication in .NET 6.0 with C#. Includes example client apps built with Angular, React, Vue & Blazor.
Published: December 14 2021
How to implement custom JWT authentication in .NET 6.0 with C#. Includes example client apps built with Angular, React, Vue & Blazor.
Published: December 07 2021
With the .NET CLI you can create a new project with the dotnet new <TEMPLATE> command, where the TEMPLATE is the type of application you want to create.
Published: October 26 2021
In this post we'll go through the steps to connect a .NET API to MySQL using Entity Framework Core, and to create a MySQL database from code using EF Core migrations.
Published: October 21 2021
In this post we'll go through the steps to connect a .NET API to SQL Server using Entity Framework Core, and to create a SQL Server database from code using EF Core migrations.
Published: October 12 2021
This is a quick post to show how to serialize enum values as strings so enum values are returned in API responses instead of the enum indexes.
Published: October 01 2021
The Startup class configures the services available to the .NET Dependency Injection (DI) container in the ConfigureServices() method, and configures the .NET request pipeline for the application in the Configure() method.
Published: September 30 2021
The Main method is the entry point for a .NET application, when an app is started it searches for the Main method to begin execution. The method can be located anywhere in a project but is typically placed in the Program class.
Published: September 29 2021
A .NET project file is an XML document containing MSBuild code that executes when you run the dotnet build command
Published: September 28 2021
Tutorial on how to build a .NET 5.0 API that supports CRUD operations.
Published: September 02 2021
This is a quick example of how to send an email in .NET 5.0 using the MailKit email client library.
Published: September 01 2021
How to build a boilerplate .NET 5.0 API that supports email sign up, verification, authentication, role based access control, forgot password, reset password and account management (CRUD) functionality.
How to build an API with role based authorization / access control in .NET 5.0 & C#. Includes example client apps built with Angular, React and Vue.
A step by step tutorial on how to build a simple bare bones .NET 5.0 API from scratch with a couple of example endpoints/routes, with details on every line of code and configuration to show how it all fits together.
Published: May 25 2021
Last updated: January 07 2022
This tutorial shows how to build a .NET 5.0 API that supports user registration, login with JWT authentication and user CRUD operations. Includes example client apps built with Angular, Blazor, React & Vue.
How to implement Basic HTTP Authentication in .NET 5.0 with C#. Includes example client apps built with Angular, React, Vue & Blazor.
Published: May 10 2021
Last updated: June 14 2021
How to setup an AWS environment from scratch and deploy a .NET Core 3.1 API to AWS Lambda that connects to a SQL Server database running on AWS RDS (Relational Database Service) and sends email using AWS SES (Amazon Simple Email Service).
How to implement custom JWT authentication in .NET 5.0 with C#. Includes example client apps built with Angular, React, Vue & Blazor.
Published: November 28 2020
In this tutorial we'll go through the steps to enable sending email via SMTP from a .NET Core API using the Amazon Simple Email Service.
Published: November 18 2020
An example of backendless development with Blazor WebAssembly using an HTTP Client Handler, includes "pass through" to real backend for unmocked URLs.
Published: November 09 2020
In this tutorial we'll go through an example of how to build a simple user registration, login and user management (CRUD) application with Blazor WebAssembly.
Published: October 02 2020
This is a quick post to show how to implement a global exception handler in ASP.NET Core 3.1
Published: September 27 2020
This is a quick post to show how to implement custom authentication in ASP.NET Core Blazor without the Identity membership system.
Published: September 20 2020
A quick set of examples to show how to send HTTP GET requests from Blazor WebAssembly to a backend API using the HttpClient
Published: September 16 2020
A quick set of examples to show how to send HTTP POST requests from Blazor WebAssembly to a backend API using the HttpClient
Published: September 15 2020
This is a quick example to show how to display a list of items in Blazor WebAssembly.
Published: September 10 2020
A Custom Basic HTTP Authentication Example built with ASP.NET Core Blazor WebAssembly
Published: August 13 2020
A Custom JWT Authentication Example built with ASP.NET Core Blazor WebAssembly.
Published: August 09 2020
This is a quick post to show how you can add a couple of simple extension methods to the NavigationManager class in your Blazor WebAssembly app for accessing query string parameters in the URL.
This is a quick example of how to setup form validation in ASP.NET Core Blazor WebAssembly. The example is a simple registration form with pretty standard fields for title, first name, last name, date of birth, email, password, confirm password and an accept terms and conditions checkbox.
This is a quick tutorial to show how you can send messages between components in a Blazor WebAssembly (WASM) application.
This is a quick example of how to create and validate JWT tokens in ASP.NET Core 3.1. We also cover how to implement custom JWT authentication with custom JWT middleware and a custom authorize attribute.
A quick example of how to hash and verify passwords ASP.NET Core 3.1 using the BCrypt.Net-Next password hashing library which is a C# implementation of the bcrypt password hashing function.
Published: July 15 2020
Last updated: October 17 2020
This is a quick example of how to send an email in ASP.NET Core 3.1 using the MailKit email client library.
Published: July 06 2020
Last updated: May 10 2021
How to build a boilerplate authentication API with ASP.NET Core 3.1 that includes email sign up & verification, authentication & role based authorization, forgot password & reset password functionality, account management (CRUD) routes with role based access control, and Swagger documentation.
A quick post to show how to setup an ASP.NET Core development machine.
How to implement JWT authentication with refresh tokens in an ASP.NET Core 3.1 API. Includes example client app built with Angular.
This is a quick post to show how to configure an ASP.NET Core API to allow CORS requests from any origin as well as with credentials.
Published: January 11 2020
In this deployment tutorial we're going to setup a new production ready Windows 2019 web server on Microsoft Azure with IIS (Internet Information Services), then deploy a full stack Vue.js + ASP.NET Core + SQL Server application to it that supports user registration and JWT authentication.
Published: January 10 2020
In this deployment tutorial we're going to setup a production ready Windows + IIS server from scratch on Microsoft Azure, then deploy a full stack React + ASP.NET Core + SQL Server application to it that supports user registration and JWT authentication.
Published: January 08 2020
Last updated: January 20 2020
In this deployment tutorial we're going to setup a production ready web server from scratch on Microsoft Azure running Windows Server and IIS, then deploy a full stack Angular + ASP.NET Core + SQL Server application to it that supports user registration and authentication.
Published: January 03 2020
Last updated: June 04 2020
An example of how to setup an ASP.NET Core project with EF Core Migrations that support multiple different database providers.
Published: December 27 2019
This is a super quick example of how to automatically migrate database changes from code in ASP.NET Core using Entity Framework Core from the Startup.cs file.
Published: October 21 2019
Last updated: September 10 2020
How to implement Basic HTTP Authentication in ASP.NET Core 3.1 with C#. Includes example client apps built with Angular, React and Vue.js.
Published: October 16 2019
Last updated: December 13 2019
How to build an API with role based authorization / access control in ASP.NET Core 3.1 & C#. Includes example client apps built with Angular, React and Vue.
Published: October 14 2019
Last updated: June 04 2020
Simple boilerplate ASP.NET Core 3.1 API that supports User Registration, Login and User Management. Uses SQLite in development & SQL Server in production and includes example client apps built with React, Angular & Vue.
Published: October 11 2019
Last updated: August 13 2020
How to implement custom JWT authentication in ASP.NET Core 3.1 with C#. Includes example client apps built with React, Angular & Vue.
Published: January 08 2019
How to build an API with role based authorization / access control in ASP.NET Core 2.2 & C#. Includes example client apps built with Angular, React and Vue.
Published: October 17 2018
Pure pagination logic written in C# / ASP.NET and available on NuGet. Compatible with ASP.NET Core and ASP.NET Standard projects.
Published: October 15 2018
An example of how to add pagination to your ASP.NET Core 2.1 Razor Pages application.
Published: September 08 2018
Last updated: January 18 2019
How to implement Basic HTTP Authentication in ASP.NET Core 2.2 with C#. Includes example client apps built with Angular, React and Vue.js.
Published: August 14 2018
Last updated: January 08 2019
How to implement JWT authentication in ASP.NET Core 2.2 with C#. Includes example client apps built with React, Angular & Vue.
Published: June 26 2018
Last updated: January 14 2019
A clean and simple custom ASP.NET Core API for User Registration, Login with JWT Authentication and User Management.