A very simplistic explanation of events in C#

Introduction If you just want to see the code involved, go to the end of this article. I am really writing this for myself because on the rare occasion that I have to rely on events for something, I a...

TSQL: Passing objects to stored procedures via XML

Introduction This is a subject I have heard about repeatedly, but I never bothered looking into it until recently. I was told that writing hard coded insert and update statements is bad practice. To w...

Simple Class Creator Published on Google Code

05/25/2014 UPDATE: I moved the code to a different project. I have made a number of changes since 2012. 11/14/2015 UPDATE: I moved my whole repository from GoogleCode to GitHub because GoogleCode shut...

GridView does not have a default Insert Support

Here is a fun fact for you. The ASP.NET GridView control does not have default Insert Support for your objects, even if you are using the “InsertItemTemplate” tag, it doesn’t matter!...

Entity Framework: Executing SQL Strings

I’ve griped about this before, not sure why everything has to be so complicated with EF at times, but holy hell executing just a simple SQL String “SELECT * FROM Table” is a major fe...