RavenDB logo

RavenDB embedded with ASP NET Core web API

This post describes how you can set up a simple ASP NET Core web API with Visual Studio 2017 to use an embedded RavenDB. This is a step by...

Adding an Angular app to your Umbraco Website

What problems does this solve? This enables you to have an Angular application alongside your Umbraco website, on a specified route. The Angular App can be protected by the Authentication of...

How to add your custom content files into a nuget package (for Visual Studio)

Yesterday, I was assigned to fix a nuget package solution that was not packing all the needed files. I had a bad time searching online for answers, and had...

Force Image Cache Refresh Programmatically

The best solution I found, to force the browser cache to refresh for an image, is to modify the image url in the html. Example: I have an image with this...

log4net PatternLayout and PatternConverter

I have the following scenario: I'm using Unity dependency injection container and interception techniques to log some WCF operation calls. I need to log the input parameters and also the...

nettiers – GetBy Index problem with StoredProcedure long name

Today I've discovered a problem with CodeSmith nettiers templates because it was possible to generate two SPs with the same name, for different entities. This happens when there are two indexes for...

Add WCF Message Id in every log4net message

I needed to have the WCF message identifier in every log message because I needed to correlate the log messages from a particular WCF call. The best way to achieve...

Custom properties log4net

I had the need to add some custom properties in my log4net messages. I used the log4net contexts like this: log4net.ThreadContext.Properties = messageId; And then updated my rolling file appender: <!-- Rolling File...

Quartz.NET: A simple single producer/multi consumer backoff strategy

When handling a producer/consumer problem where there's a single source of data to be consumed by multiple entities, you might arrive at a state where your consumers will start...

Adapting .netTiers for Enterprise Library v6.0 and .NET v4.5

Code generation is now more than ever a core activity in software development. With the growing complexity of systems and the need to meet deadlines, getting your database access...