public static DbType GetDbType(Type appType) { if (typeMap.IsNull()) { InitializeDbType(); } DbType type = typeMap[appType]; return(type.IsNull() ? DbType.AnsiString : type); }
public static DbType GetDbType(Type appType) { if (MappedDbType.typeMap.IsNull()) { MappedDbType.InitializeDbType(); } DbType item = MappedDbType.typeMap[appType]; if (!item.IsNull()) { return(item); } return(DbType.AnsiString); }