RavenDB logo

RavenDB embedded with ASP NET Core web API

0
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...

QueryStringPageViewer WebPart for Sharepoint

0
    ///     /// Mads Haugbø Nissen 2003(c)    /// Objectware AS    /// Norway    ///     /// http://weblogs.asp.net/mnissen    ///     /// The QueryStringPageViewer provides the same functionality as the regular...

Custom properties log4net

0
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...
redirection

Redirecting 2 domains from http to https and non-www to www

0
Recently I had to configure some redirections in a website that contains two different domains. Both use https and I want the main site, which uses the primary domain, to...

Force Image Cache Refresh Programmatically

1
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...

How to create a custom section for an application config file

0
First we need to create a custom ConfigurationElement. This configuration element only has a value attribute. public class MyConfigurationElement : ConfigurationElement { /// <summary> ///...

Using Sandcastle to Generate Documentation

0
Sandcastle is Microsoft's documentation compiler. It uses reflection of source assemblies and integrates the XML comments placed in the code by the developer to generate comprehensive MSDN-like documentation. Actually,...

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

1
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...

Integration Tests in .NET WebApi

0
In software development, testing is an essential aspect that ensures the stability and reliability of applications. Three primary types of tests are commonly used: unit tests, integration tests, and end-to-end tests. In this blog post, we will discuss these testing types in the context of a .NET WebAPI project and provide an example implementation of integration testing using an in-memory database.

Conditional Post-build event in Visual Studio 2008

0
I have a class library project where I want to add the assembly to the GAC but only when the configuration is Debug. The solution is: if...