Category: .Net

The Beauty of Mongo

The Beauty of Mongo

MongoDB is sexy.  Sexy as hell. This isn’t the first or the best intro to Mongo+.NET, but I hope this one can show you how it finally solves the object-relational disconnect with an easy to follow example. Let’s start with...

FluentNHibernate vs. Code First in EF 4.1

FluentNHibernate vs. Code First in EF 4.1

First, having been in the SharePoint space exclusively for so long now, I have to admit: it’s been a while since I’ve had to deal with non-SharePoint data access.  I don’t know if I miss it or not 😀 I’ve...

Getting Version Changes From SharePoint

Getting Version Changes From SharePoint

SharePoint doesn’t provide a straightforward way to do this it seems.  My first crack was to try to leverage the BeforeProperties and AfterProperties in an event receiver, but it turns out that this doesn’t work quite as you would expect...

Most Annoying Thing About SharePoint 2010?

Most Annoying Thing About SharePoint 2010?

I’ve been bashing my head against a SharePoint 2010 solution package for almost 10 hours now across two days.  I mean god forbid Microsoft provides us poor developers with some useful error messages or even a hint of what’s going...

HTML5 and the Future of Silverlight and WPF

HTML5 and the Future of Silverlight and WPF

Peter Bright has an interesting, in-depth write up of the aftermath of PDC and the future of Silverlight and WPF. Of particular interest to me is that it seems to imply the impending doom of WPF.  This genuinely surprised me...

Cancelling an Event In SharePoint 2010

Cancelling an Event In SharePoint 2010

Small note on the API change: the Cancel property has been deprecated in favor of the new Status property. Hope this saves someone some time.

Updating SharePoint Taxonomy Fields

Updating SharePoint Taxonomy Fields

I tripped up on it a bit recently on SharePoint taxonomy fields (or managed metadata fields) as I found that I wasn’t able to push down values from a SharePoint list item to a Word document programmatically in SharePoint. I...

Programmatically Submitting Files to the SharePoint Content Organizer

Programmatically Submitting Files to the SharePoint Content Organizer

The content organizer in SharePoint 2010 is an interesting feature, particularly from an application development perspective as it gives you a fairly competent rules builder (why does it post back when you select a content type?  Like seriously, Microsoft?) and...

Getting All Content Controls using OpenXML

Getting All Content Controls using OpenXML

If you’re trying to get all of the content controls in an OpenXML document, the most obvious way to do it would be:

But this will only get you some of the content controls.  Basically, it won’t return any...