Quantcast
Channel: Entity Framework – The Reformed Programmer
Browsing all 76 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Handling Entity Framework Core database migrations in production – Part 1

Andrew Lock wrote an excellent series called “Running async tasks on app startup in ASP.NET Core” in which he used “migrating a database” as an example of something you could do on startup. In part 3...

View Article


Image may be NSFW.
Clik here to view.

Handling Entity Framework Core database migrations in production – Part 2

This is the second in the series on migrating a database using Entity Framework Core (EF Core). This article looks at applying a migration to a database and follows on from part 1 which covered how to...

View Article


Image may be NSFW.
Clik here to view.

Building a robust CQRS database with EF Core and Cosmos DB

Back in 2017 I wrote about a system I built using EF Core 2.0 which used Command and Query Responsibility Segregation (CQRS) pattern that combines a SQL Server write database a RavenDB NoSQL read...

View Article

Image may be NSFW.
Clik here to view.

Decoding Entity Framework Core logs into runnable SQL

This isn’t one of my long articles, but just a bit of fun I had trying to convert Entity Framework Core’s (EF Core) CommandExecuted logs back into real SQL. EF Core’s logging is much improved over...

View Article

Image may be NSFW.
Clik here to view.

GenericServices Design Philosophy + tips and techniques

I read Jimmy Bogard’s article called “AutoMapper’s Design Philosophy”, which he wrote to help people understand what job AutoMapper was designed to do. This sort of article helps people who get...

View Article


Image may be NSFW.
Clik here to view.

Getting better data for unit testing your EF Core applications

I was building an application using Entity Framework Core (EF Core) for a client and I needed to set up test data to mimic their production system. Their production system was quite complex with some...

View Article

Image may be NSFW.
Clik here to view.

Part 3: A better way to handle ASP.NET Core authorization – six months on

About six months ago I wrote the article “A better way to handle authorization in ASP.NET Core” which quickly became the top article on my web site, with lots of comments and questions. I also gave a...

View Article

Image may be NSFW.
Clik here to view.

Part 4: Building a robust and secure data authorization with EF Core

This article covers how to implement data authorization using Entity Framework Core (EF Core), that is only returning data from a database that the current user is allowed to access. The article...

View Article


NET Core 3 update to “Entity Framework Core in Action” book

With the release of EF Core 3 I wanted to provide updates to my book, “Entity Framework Core in Action”. This article covers the whole of the book and provides the updated information. But I also plan...

View Article


Image may be NSFW.
Clik here to view.

An in-depth study of Cosmos DB and the EF Core 3.0 database provider

This article looks at the capabilities of Cosmos DB database when used via the new EF Core 3.0 database provider. It looks at various differences between Cosmos DB, which is a NoSQL database, and a...

View Article

Image may be NSFW.
Clik here to view.

A robust event-driven architecture for using with Entity Framework Core

The term “event-driven architecture” covers a wide range of distributed systems like MicroServices, Serverless etc. And this chapter from the book Software Architecture Patterns says event-driven...

View Article

Image may be NSFW.
Clik here to view.

EfCore.GenericEventRunner: an event-driven library that works with EF Core

In the first article I described an event-driven architecture that work with Entity Framework Core (EF Core). In this article I go into the details of how to use the EfCore.GenericEventRunner that...

View Article

Image may be NSFW.
Clik here to view.

A technique for building high-performance databases with EF Core

As the writer of the book “Entity Framework Core in Action” I get asked to build, or fix, applications using Entity Framework Core (EF Core) to be “fast”. Typically, “fast” means the database queries...

View Article


Improving Domain-Driven Design updates in EfCore.GenericServices

I love giving talks, because it makes think about what I am talking about! The talk I gave to the Developer South Coast meetup about EF Core and Domain-Driven Design (DDD) gave me an idea for a new...

View Article

Image may be NSFW.
Clik here to view.

EF Core In depth – what happens when EF Core reads from the database?

This article gives an “under the hood” view of what happens when EF Core reads in data from a database. I look at two types of database read: a normal query and a query that contains the AsNoTracking...

View Article


Image may be NSFW.
Clik here to view.

EF Core In depth – what happens when EF Core writes to the database?

This article is the second “under the hood” view of what happens when you use EF Core. The first was about reading from the database, and this article is about writing to the database. This is CUD...

View Article

Image may be NSFW.
Clik here to view.

EF Core In depth – Soft deleting data with Global Query Filters

This article is about a way to seemingly delete data, but in fact EF Core hides it for you and you can get it back if you need to. This type of feature is known as soft delete and it has many good...

View Article


Image may be NSFW.
Clik here to view.

EF Core In depth – Tips and techniques for configuring EF Core

This article is being more efficient at configuring your EF Core DbContext that runs fast and safe. As a working freelance developer, I’m always looking for ways to make me a more efficient/faster...

View Article

Image may be NSFW.
Clik here to view.

Introducing the EfCore.SoftDeleteServices library to automate soft deletes

Following on from my articles “EF Core In depth – Soft deleting data with Global Query Filters” I have built a library, EfCore.SoftDeleteServices (referred to as the Soft Delete library from now on),...

View Article

Image may be NSFW.
Clik here to view.

Updating many-to-many relationships in EF Core 5 and above

EF Core 5 added a direct many-to-many relationship with zero configuration (hurrah!). This article describes how to set this direct many-to-many relationship and why (and how) you might want to...

View Article
Browsing all 76 articles
Browse latest View live


Latest Images