This is a quick post to show how easy it is to sign and validate JWT auth tokens in .NET 7.0 without using the built-in Core Identity membership system.
How to fix the nullable reference warning in Entity Framework DbContext and DbSet: Non-nullable property '...' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
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.
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.
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.
This is a super quick example of how to automatically migrate database changes on startup from code in .NET 6.0 using Entity Framework in the Program.cs file.
This is a quick example of how to create and validate JWT tokens in .NET 6.0. We'll also cover how to implement custom JWT authentication using custom JWT middleware and a custom authorize attribute.
This is a quick example of how to hash and verify passwords in .NET 6.0 using the BCrypt.Net-Next password hashing library, a C# implementation of the bcrypt password hashing function.
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.
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.
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.
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.
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.
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.
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.
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.
This is a quick example of how to create and validate JWT tokens in .NET 5.0. We'll also cover how to implement custom JWT authentication using custom JWT middleware and a custom authorize attribute.
This is a quick example of how to hash and verify passwords in .NET 5.0 using the BCrypt.Net-Next password hashing library, a C# implementation of the bcrypt password hashing function.
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.