public static bool TypeTakesPrecisionAndScale(this DbType type) { switch (type) { case DbType.Decimal: return true; default: return false; } } }