Posts tagged "EF Core"

Published: January 18 2023

.NET + Entity Framework - Fix for Non-nullable property '...' must contain a non-null value in EF DbContext

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.
Published: January 18 2023

.NET 7.0 - Facebook Authentication API Tutorial with Example

Tutorial on how to build a .NET 7.0 API that supports Facebook Authentication.
Published: November 22 2022

.NET 6.0 - Connect to InMemory Database with Entity Framework Core

This post shows how to connect a .NET 6 API to an InMemory database for testing with Entity Framework Core.
Published: September 05 2022

.NET 6.0 - Connect to SQLite Database with Entity Framework Core

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.
Published: June 23 2022

.NET 6.0 - Connect to PostgreSQL Database with Entity Framework Core

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.
Published: March 25 2022

.NET 6.0 - Connect to MySQL Database with Entity Framework Core

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.
Published: March 18 2022

.NET 6.0 - Connect to SQL Server with Entity Framework Core

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.
Published: March 15 2022

.NET 6.0 - CRUD API Example and Tutorial

Tutorial on how to build a .NET 6.0 API that supports CRUD operations.
Published: February 26 2022

.NET 6.0 - Boilerplate API Tutorial with Email Sign Up, Verification, Authentication & Forgot Password

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 01 2022

.NET 6.0 - Execute EF Database Migrations from Code on Startup

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.
Published: January 31 2022

.NET 6.0 - Database Migrations to Different DB Per Environment (SQLite in Dev, SQL Server in Prod)

An example of how to setup a .NET 6.0 project with Entity Framework Migrations that supports multiple different database providers.
Published: January 07 2022

.NET 6.0 - User Registration and Login Tutorial with Example API

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: October 26 2021

.NET 5.0 - Connect to MySQL Database with Entity Framework Core

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

.NET 5.0 - Connect to SQL Server with Entity Framework Core

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: September 28 2021

.NET 5.0 - CRUD API Example and Tutorial

Tutorial on how to build a .NET 5.0 API that supports CRUD operations.
Published: September 01 2021

.NET 5.0 - Boilerplate API with Email Sign Up, Verification, Authentication & Forgot Password

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.
Published: June 08 2021

.NET 5.0 - Automatic Entity Framework Migrations to SQL Database on Startup

A super quick example of how to automatically migrate database changes from code in .NET 5.0 using Entity Framework in the Startup.cs file.
Published: June 03 2021

.NET 5.0 - Entity Framework Migrations for Multiple Databases (SQLite and SQL Server)

An example of how to setup a .NET 5.0 project with Entity Framework Migrations that supports multiple different database providers.
Published: May 25 2021
Last updated: January 07 2022

.NET 5.0 - Simple API for Authentication, Registration and User Management

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.
Published: July 06 2020
Last updated: May 10 2021

ASP.NET Core 3.1 - Boilerplate API with Email Sign Up, Verification, Authentication & Forgot Password

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.
Published: January 03 2020
Last updated: June 04 2020

ASP.NET Core - EF Core Migrations for Multiple Databases (SQLite and SQL Server)

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

ASP.NET Core - Automatic EF Core Migrations to SQL Database on Startup

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 14 2019
Last updated: June 04 2020

ASP.NET Core 3.1 - Simple API for Authentication, Registration and User Management

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.
Supported by