How to use Enums when using Entity Framework Core with C#

Let’s look at a couple of different ways to model enums, and how we can pre-populate our database with these values

Jamie Burns
ITNEXT
Published in
13 min readFeb 23, 2023

--

A photo of lots of wooden draws
Photo by Jan Antonin Kolar on Unsplash

Entity Framework is great.

It’s not ideal for all situations, but in some cases, it gets a lot of things right.

--

--