November 2009 Entries
In the previous post "Why does SubSonic's SimpleRepository Add<T> Method return a decimal instead of an int?" I talked some about what appeared to be some odd behavior regarding the return value of the ‘Add<T>’ method in SubSonic’s SimpleRepository. In a nutshell, I expected the object that this method returned to have an underlying type of ‘int’ since the type that it was dealing with had an int as the primary key / identity field. Instead, the method was returning an object with an...
Updated on 01/05/2010 I was talking about this with some folks over the Christmas holiday and formulated some new thoughts on it. Several months back I finally became frustrated enough with paying roughly $150 per month for my cable television and internet service. I had been slowly adding packages to my cable service over the years (DVR, digital cable, HD channels, etc.) and it had all gotten out of control. I had several hundred channels to watch but maybe watched 10-15 of them on a regular basis...
Last time I was taking a look at SubSonic’s SimpleRepository functionality and wondering about the return value of the ‘Add<T>’ method. More specifically, I was wondering why the ‘object’ instance being returned was typed as a decimal rather than an int when the object I was persisting had a primary key field that is typed as an int. I had discovered that the while Add<T> was returning a decimal, it was also updating the primary key field (PostID on my Post class instance in this case)...
I’ve been spending some time lately digging into SubSonic 3 and have really enjoyed working with it so far. I love the how “low friction” it is to get up and running. I’ve been particularly impressed with the SimpleRepository in this regard. It definitely lives up to it’s name by providing truly simple data access functionality in a pretty sane and straightforward way. That said I don’t think it’s the best choice for every project, but if you don’t have to care much about the implementation details...
* Let me begin this post with saying that I’m a huge fan of Dropbox. It’s a fantastic service that is dead simple and “just works”. That said, I hit a snag with it recently that was a bit frustrating and took me some time to get straightened out. Dropbox is a service that lets you install a small client application that watches a folder on your computer. Whenever anything is added, removed, or changed within that folder it automatically uploads that change to its servers. You can then access those...