Entity Framework

Working As a Team with Migrations in Entity Framework Core

The official Microsoft documentation for using Migrations in Team Environments covers the basics. However, they neglect to mention one very important thing: Removing Migrations in a Team Environment Can Be [...]

2021-02-18T10:26:22-04:00February 17th, 2021|

Force Strings to use VARCHAR in Entity Framework Core

The nvarchar data type requires twice as much space to store as an equivalent-length varchar. For that reason, it is usually recommended to use varchar when you don't have a [...]

2020-10-30T05:10:59-03:00October 29th, 2020|

Seed Identity Data in ASP.Net Core

When using Identity in ASP.Net Core, it can be useful to seed some data for testing purposes. How to go about that is not entirely obvious, given that the tables [...]

2020-10-28T01:41:27-03:00October 28th, 2020|

Entity Framework Core Model in .NET Framework 4x Project

Because .NET Standard is implemented by later versions of the .NET Framework and .NET Core, these two very different project types can actually play nicely together. (I think of .NET [...]

2020-11-04T17:53:27-04:00October 23rd, 2020|

Enum Entity Property in Entity Framework Core

I like working with enums, but I found I haven't used them much lately because I was fuzzy on how to use them in conjunction with Entity Framework. I've finally [...]

2020-10-27T15:45:34-03:00October 16th, 2020|

Relationships in Entity Framework Core 3

One to Many Relationships This article does not yet include information about One-To-Many relationships. However, One-To-Many relationships have not changed since Entity Framework 6, so check out this guide for [...]

2020-02-22T14:04:20-04:00February 16th, 2020|

Migrations in Entity Framework Core

Migrations in Entity Framework Core have become very powerful and easy to use. This is by no means a complete guide! Rather, this acts as a Quick Reference Guide for [...]

2022-02-09T01:09:37-04:00February 15th, 2020|

Create ASP.Net Core 3.1 MVC Project With Entity Framework

This example demonstrates how to create & configure an ASP.Net Core 3.1 MVC project with Entity Framework. I've included instructions on adding the appropriate NuGet packages, setting up the connection [...]

2020-02-16T11:57:52-04:00February 13th, 2020|
Go to Top