All about .NET development blog From basic C# to advanced Entity Framework, MVC and SharePoint

AuthorHendrik Bulens

Automatically deploy a static site to Azure App Service using Azure DevOps


Static websites are nothing to get excited about. To avoid being scorned, it’s probably best not to put it as a skill on your resume or to bring it up at a networking event. Even so, they are still found everywhere. And for good reason. From a developer’s perspective, quite a lot has happened since the early days of web development. New technologies and frameworks have popped up like...

Preparation guide for the AZ-900 Azure Fundamentals exam


Earlier this week I passed the AZ-900 Azure Fundamentals exam. I am genuinely relieved I did, and here’s why. I’ve been in the field for several years. Heck, I even wrote my master’s thesis on cloud computing. I’ve used Azure for years, mostly for development purposes but weirdly I’ve never put anything into production on Azure. This slightly odd discovery put me...

Injecting resource files as plain JavaScript objects in ASP.NET Core


Localization and internationalization are much-discussed topics and many terrific solutions have been developed to easily create multilingual applications. I would like to introduce a different way of localizing web-based applications. As the title suggests, I will show you how to inject resource files as plain JavaScript objects to the web client. The result is a simple JavaScript object which...

How to automatically load navigation properties in Entity Framework (Core)


Anyone who has worked with Entity Framework must have managed related entities. I believe many developers will agree the way that system works is difficult to reconcile with design patterns such as the Repository pattern. In this post, I’ll provide one quick and easy way to automatically load all related properties from the database.

Update 2018-11-26: Added the equivalent for EF Core.

Digital nomadism (in the Americas)


Between September 2016 and February 2018, I traveled through the Americas as a digital nomad. I usually try to avoid using this term because one may get the wrong idea of what it means when watching certain YouTube videos or Instagram pictures. Or just simply google it. Chilling out in a hammock on the beach on a sunny day with your laptop on your lap drinking your $10 margarita while getting a...

Simplify and automate text manipulation with NimbleText


NimbleText is a useful tool that has been in my toolset for many years now. On the website, NimbleText is described as a “text manipulation and code generation tool (…) that magnifies your ability to perform incredible feats of text and data wrangling”. I agree with this statement and I don’t think it’s an exaggeration. And best of all, it’s free! There is a premium...

Exam 70-487 Preparation guide


Overview At first glance, this seems like a fairly easy exam but that’s where the danger lies. This is why I decided to write a blog post to prevent other people from falling into the same trap. I have worked with Azure, WCF, Web API, Entity Framework, ADO.NET for my whole career (all 4 years of it + the time I worked with it in college, which makes it about 5 to 6 years). But I never...

A repository of useful PowerShell scripts


I have had to generate a lot of new files lately, and because I am allergic to repetitive work, I looked for a way to dynamically generate and process files. And for my case, PowerShell scripting comes pretty close to what I needed. Just like a few of my other posts (the best of StackOverflow and Things I always have to Google, I decided it would be a good idea to centralize these scripts and...

ASP.NET MVC and HTML5 Web Workers


Although the technology has been around for a while now, HTML5 Web Workers didn’t draw my attention until a few days ago. As I’m building a client facing SaaS application for my client, performance is crucial. Having worked with asynchronous methods in C# for years, I thought of using this concept in JavaScript. As it turns out, multithreading in Javascript isn’t really part of...

Best of Stack Overflow


Just as in my other post about topics I have to “re-Google” often, this post serves as a catalog of interesting Stack Overflow articles. Because the concept of browser favorites doesn’t work quite well in my world, this blog post does the job of keeping a simple and convenient list very well. To keep things as simple as possible, I have divided the post in categories, comparable...

ExtJS grid page size – letting the user decide


In addition to this article, I have embedded this feature into a new PagingToolbar child class. Basically it adds a combo box to the toolbar’s items and then adds extra behavior so the store reloads with the specified page size. View the code on Gist. It can be made even more generic and probably cleaner but this is an acceptable solution to the problem. Comments or suggestions are always...

Create lambda expressions on the fly in C#


For the last couple of weeks I have been working with client-side frameworks such as Kendo UI and Sencha ExtJS a lot. One of the requirements of my clients was server-side filtering, grouping and ordering of several grids and other components. The challenge here is that you don’t know exactly what information might be coming in: which field do you have to filter or sort, which direction...

New features in C# 6.0


With the release of Visual Studio 2015 last week, I thought it would be a good time to inspect the new features that come with the newest version of C#. Although C# 6.0 is certainly not a major release from a developer’s perspective, there are some items that every developer will use in the coming years. In this post, I’ll show some examples on how to use these new features.

How to prepare for Microsoft exam 70-483 programming in C#


Today I passed the 70-483 Programming in C# exam. As any other Microsoft exam, the passing score is 700 on a total score of 1000. I scored way above my expectations, so I’m very happy that my efforts are rewarded with a MCP certificate. I can highly recommended experienced consultants and developers to take this exam. For beginning programmers ( < 1 year) this exam will probably be too...

Managing shared information with IDisposable in C# and SharePoint


Every once in a while you’ll have a situation in which you temporarily have to use different (shared) settings and reset them if all work is done. An example of this is often seen in SharePoint, for instance disabling events when updating items in event receivers, or allowing unsafe updates. A workaround that I have seen a lot is that developers add a TRY/CATCH/FINAL block for each method...

Writing the output from console applications to text file


Console applications provide a quick and easy way (and also a little bit dirty) to test or fix parts of your application. It enables you to focus on the business logic rather than the GUI. Sometimes the output to the window is quite large – larger than the console window can show. In those cases you want to be able to persist the output to text files. In this post, I’ll show you how...

Item-based exception handling in LINQ


Last week I rewrote some of my client’s code after having discovered a number of bugs. More specifically, a lot of errors came up in LINQ methods such as Where and Select. In order to capture what exactly was going wrong there, I have added a new extension method to the IEnumerable interface, allowing item-based exception handling on collections and LINQ statements.

Developing timerjobs in C# with Quartz.NET


At some point, any developer will have to write some code that must be executed at regular intervals. In SharePoint for instance, timerjobs were (!) very easy to create. In .NET, you could choose between scheduled tasks and windows services. While I was doing research on the ideal replacement for timerjobs in the new SharePoint app model, I came across Quartz.NET. In this post, I will show you...

All about .NET development blog From basic C# to advanced Entity Framework, MVC and SharePoint