public static string GetQaTypeName(this DbDataReader reader, int ordinal) { { QaDataReader x = reader as QaDataReader; if (null != x) { return(x.GetQaTypeName(ordinal)); } } { QaDataReaderMulti x = reader as QaDataReaderMulti; if (null != x) { return(x.GetQaTypeName(ordinal)); } } throw new NotSupportedException("GetQaTypeName() on reader " + reader.GetType().FullName); }
public static string GetQaTypeName(this QaDataReader reader, int ordinal) { return(GetQaTypeName(reader.GetFieldType(ordinal), reader.GetMetadata()[ordinal].Size)); }