EF Core – Combining SQL and NoSQL databases for better performance
This is the second article in my series on Entity Framework Core (EF Core) performance tuning. In this article I take that performance even further than part 1 did, by changing the applications to a...
View ArticleEF Core: taking full control of the database schema
Entity Framework Core (EF Core) is the new(ish) version of Microsoft’s widely-used database access library. EF Core allows you to map .NET classes and properties to database tables and columns...
View ArticleUsing in-memory databases for unit testing EF Core applications
While writing the book Entity Framework Core in Action I wrote over 600 unit tests, which taught me a lot about unit testing EF Core applications. So, when I wrote the chapter on unit testing, which...
View ArticleA library to run your business logic when using Entity Framework Core
This article describes a library to help write and run business logic in a .NET Core application where you are using Entity Framework Core (EF Core) library for database accesses. This follows on from...
View ArticleIs the repository pattern useful with Entity Framework Core?
I wrote my first article about the repository pattern in 2014, and it is still a popular post. This is an updated article that takes account of a) the release of Entity Framework Core (EF Core) and b)...
View ArticleCreating Domain-Driven Design entity classes with Entity Framework Core
This article is about how to apply a Domain-Driven Design (DDD) approach to the classes that the Entity Framework Core (EF Core) library maps to a database. This article is about why DDD is useful with...
View ArticleGenericServices: A library to provide CRUD front-end services from a EF Core...
This article is about a NuGet library designed to make building Create, Read Update and Delete (CRUD) web pages quicker to write. GenericServices acts as an adapter and command pattern between EF Core...
View ArticleEntity Framework Core – validating data and catching SQL errors
This article is about how to catch SQL errors, like unique index violations, and turning them into user-friendly error messages. This capability adds to the general area of validation of data being...
View ArticleHow to write good, testable ASP.NET Core Web API code quickly
This article is about ASP.NET Core 2.1 Web API code and ways to write code that is easy to understand, easy to test and quick to write. You might think that is quite a task, but I introduce a number of...
View ArticlePragmatic Domain-Driven Design: supporting JSON Patch in Entity Framework Core
I’m a big fan of Domain-Driven Design (DDD) and build all my Entity Framework Core (EF Core) entity classes using a DDD approach, i.e. all properties have private setters and all changes are made via...
View ArticleThree approaches to Domain-Driven Design with Entity Framework Core
On my article “Creating Domain-Driven Design entity classes with Entity Framework Core” @ardalis commented that “your entities all are tightly coupled to EF Core. That’s not good…”. Then I did a...
View ArticleCreating Domain-Driven Design entity classes with Entity Framework Core
This article is about how to apply a Domain-Driven Design (DDD) approach to the classes that the Entity Framework Core (EF Core) library maps to a database. This article is about why DDD is useful with...
View ArticleGenericServices: A library to provide CRUD front-end services from a EF Core...
This article is about a NuGet library designed to make building Create, Read, Update and Delete (CRUD) web pages quicker to write. GenericServices acts as an adapter and command pattern between EF...
View ArticleEntity Framework Core – validating data and catching SQL errors
This article is about how to catch SQL errors, like unique index violations, and turning them into user-friendly error messages. This capability adds to the general area of validation of data being...
View ArticleHow to write good, testable ASP.NET Core Web API code quickly
This article is about ASP.NET Core 2.1 Web API code and ways to write code that is easy to understand, easy to test and quick to write. You might think that is quite a task, but I introduce a number of...
View ArticlePragmatic Domain-Driven Design: supporting JSON Patch in Entity Framework Core
I’m a big fan of Domain-Driven Design (DDD) and build all my Entity Framework Core (EF Core) entity classes using a DDD approach, i.e. all properties have private setters and all changes are made via...
View ArticleThree approaches to Domain-Driven Design with Entity Framework Core
On my article “Creating Domain-Driven Design entity classes with Entity Framework Core” @ardalis commented that “your entities all are tightly coupled to EF Core. That’s not good…”. Then I did a...
View ArticleBuilding high performance database queries using Entity Framework Core and...
When you are writing Entity Framework Core (EF Core) queries (i.e. reading data from the database) you want them to be quick to run (high performance) and quick to write. It turns out that it’s...
View ArticlePart 2: Handling data authorization in ASP.NET Core and Entity Framework Core
In the first part of this series I looked at authorization in ASP.NET Core, but I only focused on controlling what pages/features the logged in user can access. In this article I’m going to cover how...
View ArticleWrapping your business logic with anti-corruption layers – NET Core
There is a concept in Domain-Drive Design (DDD) called the anti-corruption layer which, according to Microsoft explanation of an anti-corruption layer “Implements a façade or adapter layer between...
View Article