Archive for November, 2009
Custom DataAnnotation for US States
Pivoting off this post by Phil Haack about creating custom data annotations, I found myself in need of one today when putting together some code for a project for the spousal unit. I wanted to be sure that a given field contained a valid abbreviation for a U.S. State.
It’s simple, but it works. I’m going [...]
Linq to Sql Won’t Generate Partial Methods for View
So let’s say that you drag your view onto the design surface in L2S. Why, you ask, aren’t there the extensibility methods for OnCreated() and the rest of the INotifyPropertyChanged interface?
Because a view doesn’t have a primary key and without one there is nothing to track.
Set a PK, save, and watch the magic happen.
It’s Literally Been Months…
Since I have written a post here, and for good reason. Most of the time that I spent writing about politics and such here in comments in other places, I was unemployed. Which makes plenty of time available for writing and venting one’s spleen. It’s all well and good to call yourself a freelance software [...]
