Object-Relational Mapping & Code First Migration with Entity Framework Core

Patrick God on February 19, 2020

This tutorial series is now also available as an online video course. You can watch the first hour on YouTube or get the complete course on Udemy.... [Read Full]
markdown guide

Hello again Patrick, it was really enjoyable to follow these articles.
Can't wait to see more coming and also I would like to suggest you to think about some other implementations other than MS SQL Server for users like me that are macOS-oriented (yes, I know that I can fire up a VM or Docker but hey, I'm lazy after all 😂).
I tried by myself to use SQLite, and it worked, but I can see something is missing 😁

This was a very good way to spend my Sunday, I feel like going from zero-to-hero in .NET Core.


Hello again Alessandro,
Thank you so much. Your words mean a lot to me. I really appreciate it.

I totally understand your "laziness". ;)

Implementing other databases like SQLite, MariaDB or even NoSQL databases like MongoDB is a topic I will keep in mind!

Apart from that, I will make a video tutorial of this whole tutorial series and maybe add those implementations of other databases to these videos. If you're interested, let me know.

Talk soon,


Nice article mate. Anyway, in the world of micro components and fast-faced development, are you really spending time too much for such kind of bootstrapping? I guess, it is a bit too much for a single developer to always do this without the help of this kind of tutorial.

Why not install the library and use it right away (in seconds) and spend most of the time into a much more productive activity.

We loved micro ORMs due to its performance, flexibility and simplicity. I am also an author of ORM named RepoDb, an ORM that consist the missing pieces of Dapper (as the benefits), plus being the fastest right now. In either way, micro-ORM are both worth trying.


Hey Mike,

Thanks for your comment. It isn't that much work, actually. You do it one or two times and you already got the hang of it and are able to enjoy the advantages of Entity Framework (Core).

If you want to build an MVP real quick, of course you can also use a solution like yours or use online web development platforms like Firebase.

Many corporations stick to .NET Core, though, and like to have complete control of the code.

So, what you want to use in the end, is totally up to you.

Have a great day!

Take care,


Hi Patrick, these are amazing articles. I like your teaching style very much.
Can't wait to read the 6th part :)


Hi Ismail, Thank you very much. I really appreciate your kind words! :)


Hi Patrick,

i like these articles a lot and am curious for the next parts.
Thanks for sharing your insights :-)


Hi Dave, Thank you very much to you as well. I really appreciate it! :)

code of conduct - report abuse