Tag Archives: EntityFrameworkCore

Mocking Entity Framework to unit test your data services

It’s not easy to write unit tests for services that use DbContext and DbSet<T> classes from Entity Framework (or Entity Framework Core), and there are complex solutions to approach this, like separating the data access layer completely, as I propose in my UnitOfWork-EntityFramework implementation. … Continue reading

Posted in Architecture, C# | Tagged , , , , , , | Leave a comment

Enabling Entity Framework Core 1.1 tools

After I created an ASP .NET Core 1.1 project (Console app) with Visual Studio 2017 to develop a new WebAPI, I wanted to add support for EntityFrameworkCore. Everything was OK, except for the Tools.DotNet package, which I couldn’t add with … Continue reading

Posted in .NET, ASP .NET, Miscellaneous, WebAPI | Tagged , , | Leave a comment