Skip to content

Sponsor: Do you build complex software systems? See how NServiceBus makes it easier to design, build, and manage software systems that use message queues to achieve loose coupling. Get started for free.

Learn more about Software Architecture & Design.
Join thousands of developers getting weekly updates to increase your understanding of software architecture and design concepts.


Follow @CodeOpinion

Derek Comartin

Testing with EF Core

I’ve been recently migrating some existing EF6 code to EF Core.  One aspect of EF Core I don’t often see is how testing with EF Core is drastically better than Entity Framework 6. There are two ways I’ve been handling running tests that use EF Core:  Using In-Memory Provider and SQLite Provider but with SQLite In-Memory. DbContext First thing I needed to do was have a constructor that took the OptionsBuilder that I could configure my DbContext options outside of the dbContext itself.  This enables us to configure our context to use the InMemory Provider.  During the OnConfiguring, check to… Read More »Testing with EF Core

Roundup #21: Roslyn, .NET Updates, IMiddleware, Warp, DDD

Here are the things that caught my eye this week.  I’d love to hear what you found most interesting this week.  Let me know in the comments or on Twitter. Note: I was away last week, hence no roundup.  This week is a bit of catch up. How Microsoft rewrote its C# compiler in C# and made it open source Roslyn is the codename-that-stuck for the open-source compiler for C# and Visual Basic.NET. Here’s how it started in the deepest darkness of last decade’s corporate Microsoft, and became an open source, cross-platform, public language engine for all things C# (and VB,… Read More »Roundup #21: Roslyn, .NET Updates, IMiddleware, Warp, DDD

Roundup #20: Azure SignalR Service, MSBuild.SolutionSdk, Marten 3.0, .NET on Service Fabric

Here are the things that caught my eye this week.  I’d love to hear what you found most interesting this week.  Let me know in the comments or on Twitter.   Azure SignalR Service Since its introduction five years ago, SignalR has grown to be one of the most popular real-time connection technologies around the world. As applications that use SignalR scale, managing and scaling a SignalR server can become quite a bit of work. Today, we’re announcing the general availability (GA) of the Azure SignalR Service, a fully managed SignalR service that enables you to focus on building real-time web… Read More »Roundup #20: Azure SignalR Service, MSBuild.SolutionSdk, Marten 3.0, .NET on Service Fabric