Part 5: A better way to handle authorization – refreshing user’s claims
This article focuses on the ability to update a ASP.NET Core’s logged in user’s authorization as soon as any of the authorization classes in the database are changed – I refer to this as “refresh...
View ArticleAdding user impersonation to an ASP.NET Core web application
If you supply a service via a web application (known as Software as a Service, SaaS for short) then you need to support users that have problems with your site. One useful tool for your support team...
View ArticlePart 7 – Adding the “better ASP.NET Core authorization” code into your app
I have written a series about a better way to handle authorization in ASP.NET Core which add extra ASP.NET Core authorization features. Things like the ability to change role rules without having to...
View ArticleNET 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 ArticleAn 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 ArticleA 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 ArticleEfCore.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 ArticleA 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 ArticleImproving 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 ArticleDomain-Driven Design and Entity Framework Core – two years on
This article is about my experiences of applying a Domain-Driven Design (DDD) approach when working with Entity Framework Core (EF Core). I have now DDD and my supporting libraries for two years on my...
View ArticleEF 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 ArticleEF 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 ArticleEF 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 ArticleEF 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 ArticleIntroducing 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 ArticleUpdating 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 ArticleNew features for unit testing your Entity Framework Core 5 code
This article is about unit testing applications that use Entity Framework Core (EF Core), with the focus on the new approaches you can use in EF Core 5. I start out with an overview of the different...
View ArticleUsing ValueTask to create methods that can work as sync or async
In this article I delve into C#’s ValueTask struct, which provides a subset of the Task class features, and use it’s features to solve a problem of building libraries that need both sync and async...
View ArticleHow to update a database’s schema without using EF Core’s migrate feature
This article is aimed at developers that want to use EF Core to access the database but want complete control over their database schema. I decided to write this article after seeing the EF Core...
View ArticleMy experience of using modular monolith and DDD architectures
This article is about my experience of using a Modular Monolith architecture and Domain-Driven Design (DDD) approach on a small, but complex application using ASP.NET Core and EF Core. This isn’t a...
View Article