EntityFramework

Improving microservices reliability – part 3: Outbox Pattern in action

And here we are for the third and last part of the Series! Last time we talked about the Outbox Pattern and it’s now time to see it in action. The main idea is to persist in the same transaction the Entity data plus the Messages that will be eventually sent to the potential subscribers. […]

Handling Integration Tests in a CI pipeline – part 2: an example

Today we’re going to take a look at a concrete example of how we can handle integration tests in a CI pipeline. Last time I gave few options of possible platforms. I am working with Gitlab in my daily job so the code today will be focusing on it. But the concepts can be applied […]

Handling Integration Tests in a CI pipeline – part 1

Integration Tests are a fundamental block of every project. And as such, they deserve a special treatment in the CI pipeline. First of all, let’s make a clear distinction between unit and integration tests. We discussed already on this blog about this, but I would like to do a quick recap. Unit tests are responsible […]

Let’s do some DDD with Entity Framework Core 3!

Few days ago Microsoft released Entity Framework Core 3, introducing a lot of improvements in both functionalities and performance ( and some breaking change as well). Now we have full support for very cool stuff like C# 8, Async Enumerables, plus a brand new LINQ provider. I’m using a lot Entity Framework in my daily […]

How to reset the entities state on a Entity Framework Db Context

I had two bad days. Those days wasted chasing a stupid bug. I had a test class with 4 test cases on my infrastructure layer. If executed one by one, they pass. If the whole suite was executed, only the first one was passing. At the end I found out that it was due to […]

Scroll to top