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

Image may be NSFW.
Clik here to view.

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 Article


Image may be NSFW.
Clik here to view.

EF 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 Article


Image may be NSFW.
Clik here to view.

Using 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 Article

Image may be NSFW.
Clik here to view.

A 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 Article

Image may be NSFW.
Clik here to view.

Is 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 Article


Image may be NSFW.
Clik here to view.

Creating 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 Article

Image may be NSFW.
Clik here to view.

GenericServices: 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 Article

Entity 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 Article


Image may be NSFW.
Clik here to view.

How 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 Article


Pragmatic 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 Article

Image may be NSFW.
Clik here to view.

Three 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 Article

Image may be NSFW.
Clik here to view.

Creating 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 Article

Image may be NSFW.
Clik here to view.

GenericServices: 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 Article


Entity 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article


Pragmatic 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 Article

Image may be NSFW.
Clik here to view.

Three 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 Article


Image may be NSFW.
Clik here to view.

Building 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 Article

Image may be NSFW.
Clik here to view.

Part 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 Article

Image may be NSFW.
Clik here to view.

Wrapping 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
Browsing all 76 articles
Browse latest View live