blog
My blog of techy stuff, ranging around SQL (SQL Server, that is), C# and .net, JavaScript and a smattering of stuff about the Orchard CMS (that powers my site) as I get more familiar with it. There's the occasional non-technical post when something is of interest to me that I feel is worth sharing, but they should be few and far between
-
Using C#7 Local Functions
After I wrote a post recently that covered the Tuple C# 7.0 language feature it got me thinking about all the other language enhancements that have been added in C# 7.0 and its three subsequent …
-
Using the C#7 Tuple language feature to eliminate an anonymous type
It might be a bit "old news" now, given that C# 7.0 was released in March 2017 (according to Wikipedia, so it must be true!) but after I answered a question on Stackoverflow earlier today I was …
-
Adding a custom '.AddThisOrThat()' method to configure ASP.NET Core Identity in one
In my recent series of posts about ASP.NET Core Identity I made several customisations to Identity that are bespoke to the application I'm building. This does mean that the code for configuring …
-
Double translating using the AngularJS angular-translate library
For those of us who're still working with applications using AngularJS 1.x (it's still in long-term support for nearly 2 years so plenty of time to plan a migration!), localising strings in the …
-
Persuading a SQL Server UDF to throw
Unfortunately (and annoyingly, at times!) it's not possible to persuade a SQL Server User-Defined Function to throw, though I've managed to find (more by luck thank judgement!) a way to get the …
-
Calling ASP.NET Web API end-points for testing purposes with Refit in .NET Core
Back in August I wrote Calling ASP.NET Web API end-points for testing purposes where I described a "bare metal" approach to calling Web Api methods using HttpClient by creating a wrapper that could …
-
Getting the tail of a file in PowerShell (and dropping it into a GridView)
I've had need to wrangle a very long log file recently that gets appended to and doesn't have any log file splitting / cycling baked into it. Changing the logging process so that it generates a …
-
When's my domain password due to change?
If I'm due to take annual leave (as I did last week) I like to check that my password isn't going to expire whilst I'm out of the office and change it a couple of days before I go on leave, just …
-
Using IUserValidator to provide additional user validation rules in ASP.NET Core Identity
In my recent series of posts I extended the UserManager class from ASP.NET Core Identity (specifically its CreateAsync method) in order to confirm that the user was permitted to register and also …
-
Useful links around ASP.NET Core Identity
Whilst working on my recent series of posts about ASP.NET Core Identity there were quite a few pages I used to research either the topic in general, or issues I encountered. Here's a selection of …