XML Validation with XSDs
I’ve been doing a lot of work with excel uploads lately to allow clients to easily upload data to their systems. Not the best approach mind you, but they know how to use excel…so what can you do? What...
View ArticleThe C# ?? null coalescing operator
A simple tip to save typing and increase your codes readability is the “double question mark operator”, more accurately called the “null coalescing operator”. Instead of using this to set defaults in a...
View ArticleWrap existing .NET site in a Portal/Theme
Recently I ran into the problem where we were attempting to have all of our websites run inside of a portal. Where you could easily jump from one app to another, without having to go back and forth, or...
View ArticleAOP – Logging with Unity
I couple months ago I was tasked with adding logging to an application we are developing. Now, the typical way people handle this, is with a call to “Logger.Log” wherever they want to log that an...
View ArticleEntity Framework Tip #1: Loading Grandchildren
When calling .FindById(), it’s a relatively simple task, to have it include child properties explicitly. Simply add a lambda expression. myRepository.FindById(1, x=>x.ChildList); This will ensure...
View ArticleVisual Studio Tip #1: Ignoring Whitespace when Comparing
When comparing files, it’s frustrating when the default compare, doesn’t ignore whitespace, and many differences are caused by spaces vs tabs. Solve it, by adjusting the parameters DiffMerge uses. In...
View Article