Archives
-
.NET Core Console Applications
Updated
-
Using MEF in .NET Core
Updated on 2018-11-08
-
Measuring Type Distance
Imagine this: you are building an API that uses conventions. A convention applies to a type. There can be several conventions registered, but the API needs to figure out what convention applies to any given class. The problem is, you can have conventions associated with base classes, concrete classes or even interfaces. For example, consider these:
-
Composition in Postal.NET
Today I pushed a new feature of Postal.NET: composition. What is this? Well, think of it as (very) lightweight sagas; a subscription is only fired when a number of messages, with certain characteristics, have been received. Let’s see some examples.
-
Changes to Postal.NET
I made a few changes to my Postal.NET library: it is now released under the LGPL license, but that’s not the most important.
-
Entity Framework Pitfalls: Entity Refresh
After an entity is loaded by Entity Framework, it gets stored in its first level cache. After that, whenever EF executes a query that returns this entity, identified by its primary key, EF always returns the cached entry, and makes no attempt to see if the cached data (the rest of the properties) is still up to date with that returned from the query. This feature is common to other ORMs, but it may result in unexpected behavior – we cannot rely on the state of a loaded entity if the database can change by other processes..
-
Introducing Postal.NET
Update: Postal.NET is now available in Nuget.