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

ASP.NET Core

Practical Microsoft Orleans

I’ve been wanting to take a deeper dive into Microsoft Orleans for awhile now.  With the next release targeting .NET Standard 2.0, it felt like an great time to do it.  This is the first blog post in a series that will go beyond a simple Hello World.  The plan is to make this a practical Microsoft Orleans guide to follow along with. Blog Post Series: Part 1 – Practical Orleans Part 2 – Grains and Silos Part 3 – Smart Cache Pattern Part 4 – Event Sourced Grain Part 5 – EventStore for Grain Persistence Microsoft Orleans If you… Read More »Practical Microsoft Orleans

Porting to Entity Framework Core

I’ve used the newer Entity Framework Core on a couple projects just to give it a test drive in the v1.0 era.  It felt very similar to Entity Framework 6.  I figured since it seemed so similar, porting wouldn’t be too difficult.  So I bit the bullet and finally decided to port an application that uses Entity Framework 6 over to Entity Framework Core 2.0.  Here is a bit of an experience report on porting to Entity Framework Core. Side by Side In theory, you should be able to run EF 6 along side EF Core.  They are completely different… Read More »Porting to Entity Framework Core

Avoiding the NullReferenceException

Easily, by a landslide, the most common exception I’ve run into in C# is the NullReferenceException.  Second would be an InvalidOperationException.  But NullReferenceException wins as most occurred exception hands down.  This quick post shows how we can start avoiding the NullReferenceException. I despise null.  I despise null checks.  What if there was a way to get rid of null checks?  Luckily there is. Last year I was at a talk by Reid Evans, Getting Started with Functional Programming in F#.   He touched on it and I’ve been using an implementation in C# ever since. Option an option type or maybe type is a polymorphic type that represents… Read More »Avoiding the NullReferenceException