.NET EF Core 6 support for groupby top(n) queries
EF Core 6 comes with some GroupBy queries improvements. In this post I wanna talk about the improvements related to "group by top(n)" queries.
Let's say we have the following...
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...
.NET XML Serialization of CDATA ATTRIBUTE
Recently I needed to create a .NET class (C#) that when serialized should contain a CDATA attribute similar to this: ...
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...
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...
Redirecting 2 domains from http to https and non-www to www
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...
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...
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...
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...
Page.EnableEventValidation and “Invalid postback or callback argument” error
I developed a custom web part that basically renders a form and submits the entered data into a SharePoint list. The problem I was having is that when the...