Writing loops in T-SQL
The topic is quite old, but I found it really helpful, so be warned.Scenario: Iterate over a result set and insert it in a new table in T-SQLI had to write a SQL migration script to move date from an...
View ArticleEnable SSL with custom domains on GitHub Pages via Cloudflare
Two weeks ago I decided (finally!) that I should enable SSL on this blog.Problem: GitHub Pages with a custom domainThis blog is hosted on GitHub Pages with a custom domain, which currently doesn’t...
View ArticleDbProviderFactories: Write database agnostic ADO.NET code
Recently I needed to write a module that needs to connect to a wide range of SQL-DBs, e.g. MySQL, MS SQL, Oracle etc.Problem: Most providers will use their concret classesIf you look at the C# example...
View ArticleGitHub API: Create or update files
This blogpost covers a pretty basic GitHub topic: Creating and updating content on GitHub. Of course, there are many ways to do it - e.g. you could do the full Git-ceremony and it would work with all...
View ArticleBuild & run xUnit tests with Cake
Last year I already covered the basic usage of Cake, which stands for “C# Make”. This time we want to build and run xUnit tests with Cake.ScenarioLet’s say we have this project structure. Be aware that...
View ArticleCreate NuGet packages with Cake
This blogpost is a follow up to these Cake (C# Make) related blogpost:Building with CakeBuild & run xUnit tests with CakeScenarioLet’s say we have this project structure. The “Config”, “Result” and...
View ArticleHowTo: Get User Information & Group Memberships from Active Directory via C#
I had to find a way to access all group memberships from a given Active Directory user. The problem here is, that groups may contain other groups and I needed a list of “all” applied group memberships...
View ArticleHowTo: Get User Information & Group Memberships from Active Directory via C#
I had to find a way to access all group memberships from a given Active Directory user. The problem here is, that groups may contain other groups and I needed a list of “all” applied group memberships...
View ArticleHow we moved to Visual Studio 2017
Visual Studio 2017 has arrived and because of .NET Core and other goodies we wanted to switch fast to the newest release with our product OneOffixx.Company & Product EnvironmentIn our solution we...
View Article.NET CultureInfo in Windows 10
Did you know that the CultureInfo behavior with “unkown” cultures has changed with Windows 10?I stumbled two times about this “problem” - so this is enough to write a short blogpost about it.Demo...
View ArticleUsing Visual Studio Code & Team Foundation Version Control (TFVC)
Recently we start working on a Angular 4 app but all other parts of the application (e.g. the backend stuff) were stored in a good old TFVC based repository (inside a Team Foundation Server 2015) ....
View ArticleNon-cryptographic hash functions for .NET
Creating hashs is quite common to check if content X has changed without looking at the whole content of X. Git for example uses SHA1-hashs for each commit. SHA1 itself is a pretty old cryptographic...
View ArticleHow to convert .crt & .key files to a .pfx
The requirements are simple: You will need the .cer with the corresponding .key file and need to download OpenSSL.If you are using Windows, take the latest pre-compiled version for Windowsfrom this...
View ArticleIdentityServer3 with WindowsAuthentication with ASP.NET WebApi & ASP.NET &...
Please note: In my sample and in this blogpost I cover IdentityServer 3, because last year when I was working on the sample and our real implementation IdentityServer4 (a rewrite of IdentityServer 3)...
View ArticlednSpy - a OSS IL decompiler and debugger
My colleague was fighting against a nasty bug, that only occures on one machine. Unfortunatly this machine was not a development machine (no VS installed) and we didn’t want to mess with VS remote...
View ArticleIntroducing Electron.NET - building Electron Desktop Apps with ASP.NET Core
The last couple of weeks I worked with my buddy Gregor Biswanger on a new project called “Electron.NET“.As you might already guess: It is some sort of bridge between the well known Electron and .NET.If...
View ArticleSigning with SignTool.exe - don't forget the timestamp!
If you currently not touching signtool.exe at all or have nothing to do with “signing” you can just pass this blogpost, because this is more or less a stupid “Today I learned I did a...
View ArticleSigning with SignTool.exe - don't forget the timestamp!
If you currently not touching signtool.exe at all or have nothing to do with “signing” you can just pass this blogpost, because this is more or less a stupid “Today I learned I did a...
View ArticleFirst steps to enable login with Microsoft or Azure AD account for your...
It is quite common these days to “Login with Facebook/Google/Twitter”. Of course Microsoft has something similar. If I remember it correctly the first version was called “Live SDK” with the possibility...
View ArticleWCF Global Fault Contracts
If you are still using WCF you might have stumbled upon this problem: WCF allows you to throw certain Faults in your operation, but unfortunatly it is a bit awkward to configure if you want “Global...
View Article