public static SqlDbType ToSqlDbType(this DbType dbType) { return(DataTypeConvertor.GetSqlDbType(dbType)); }
public static Type ToSystemType(this DbType dbType) { Type type = DataTypeConvertor.GetSystemType(dbType); return(type == null ? typeof(object) : type); }