Posted
on Nov 24, 2009
(permalink)
Since Sitefinity is only using SQL Server you might want to consider using a single sql_variant type column to replace the [ShortText], [DateTimeValue], [IntegerValue], [FloatValue], [GuidValue], and [Boolean] columns. You only need a nullable sql_variant, a nullable nvarchar(max), and a nullable varbinary(max) column to represent every intrinsic storage type, plus it removes the 250 character limit of ShortText meta data fields increasing it to the normal limit of 4000. I use this technique in every application that requires a settings table. Generic methods make the use of sql_variants very easy to work with as well (i.e. GetValue<int>(ContentId, "Count")).