Tag Archives: Code

EF core: entity cannot be tracked

We use EF core to store a bulk of data with an auto-number primary key. The auto-number is an Identity column in Sql Server. When inserting a large amount of records with related children we encounter this error: System.InvalidOperationException entity … Continue reading

Posted in Development, Tooling | Tagged , , , | Leave a comment

AutoMoqCore – auto mocking IoC

Photo by Phillip Glickman on Unsplash https://www.nuget.org/packages/AutoMoqCore/ Dependency Inversion is one of the SOLID principles. This can be applied to unittesting as well. With AutoMoqCore I can develop robust unittests that will always compile. Focus on the smallest possible code for your … Continue reading

Posted in Development, Tooling | Tagged , , , | Leave a comment

A first look at IntelliTest

Looking into Visual Studio 2017 features I found that Pex was back in the form of IntelliTest. It was actually introduced in VS2015 but I’ve never seen it. Time to give it a spin. For this I use my Traffic … Continue reading

Posted in Test | Tagged , , , | Leave a comment

Tweet your Strava runs with distance in Kilometers

These tweets show the result of fixing the Strava IFTTT service with a webhook. The hook calculates the meters to Kilometers distance. All you’ll need is an IFTTT and Azure account. TLDR Setup webhooks in IFTTT and tweet on the … Continue reading

Posted in Tooling | Tagged , , , , | Leave a comment

TFS Build light with jQuery

We use TFS for our builds. These include release builds, continuous integration builds and regression test build. We want to have a simple build light to keep an eye on the status of all definitions. This is why we use … Continue reading

Posted in Development, Tooling | Tagged , , , , | Leave a comment