Meetup: ASP.NET Core on Serverless Infrastructure

ASP.NET Core (and .NET Core in general) is very exciting with its recent evolution and is only getting better. Its cross platform nature now gives us the ability to deploy on platforms with .NET that were never an option before....

Read More

NSubstitute: A Refreshingly Simple Mocking Framework for Unit Tests

I have not worked with a lot of mocking or fakes frameworks. It always seems to be a topic just low enough on my priority list that I think I should probably do that sometime, but then never actually get...

Read More

Pluralizing in the .NET Framework

It is always statically frustrating / tedious and awful code you need to write when you have to pluralize or singularize a word. What is even worse is when people don’t bother doing that and just leave the singularized word...

Read More

Meetup: .NET Harmony with EF Code First, ASP.NET Web API, & OData

This week I will be presenting at a local .NET User Group meeting in Barrie, ON (www.northoftoronto.net) some of the efficiency's to be gained out of the latest from Entity Framework Code First, ASP.NET Web API, and OData (and don't...

Read More

DataTable .Select and .RowFilter Escaping with Apostrophe’s

One of the great things about the DataTable or DataView is its ease of ability to Sort and Filter data. Often I utilize the .Select method of DataTable. This involves writing a short where clause string to provide to the...

Read More

External Project Resource (RESX) Consumption

Using resource files can sometimes be troublesome when you need a particular resource in both a Web application mark-up or code-behind and inside a business tier or data model. When you push the Resx file further back into you’re project,...

Read More

Dynamic WCF Client Endpoint

WCF is fantastic for easy communication between applications. WCF is normally implemented using binding configurations embedded in each application. You usually have configuration for your server, and also your endpoint for your client. I found myself in a situation in...

Read More

Programmatic Impersonation

It is often a requirement in your web application to run with impersonation on. This ensures that the users credentials are directly related to whoever is logged in. However, sometimes you need access to a local file system in which...

Read More

Quick Multi-Threading Example

In the past I often looked at Multi-Threading as requiring more time to take advantage of. Recently, I took advantage of multi-threading in its generic form (not using strongly typed classes inheriting from the Thread). I found myself in a...

Read More

Config Files & Ampersands

Sometimes you have the requirement to use an Ampersand within your web.config or app.config file. It may be something like storing a URL in an Application Setting, like the following example: <?xml version="1.0" encoding="utf-8" ?> <configuration>   <appSettings>     <add...

Read More