Here are the examples of the csharp api class System.Data.Common.DbDataReader.GetDataTypeName(int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
20 Examples
0
1. Example
View licensepublic override string GetDataTypeName(int ordinal) { return InnerReader.GetDataTypeName(ordinal); }
0
2. Example
View licensepublic override string GetDataTypeName(int ordinal) { return InnerDataReader.GetDataTypeName(ordinal); }
0
3. Example
View licensepublic override string GetDataTypeName(int i) { return reader.GetDataTypeName(i); }
0
4. Example
View licensepublic override string GetDataTypeName(int ordinal) { return source.GetDataTypeName(ordinal); }
0
5. Example
View licensepublic override string GetDataTypeName(int ordinal) { return source.GetDataTypeName(ordinal); }
0
6. Example
View licensepublic override string GetDataTypeName(int ordinal) { return source.GetDataTypeName(ordinal); }
0
7. Example
View licensepublic override string GetDataTypeName(int ordinal) { return source.GetDataTypeName(ordinal); }
0
8. Example
View licensepublic override string GetDataTypeName(int i) { return rs.GetDataTypeName(i); }
0
9. Example
View licensepublic override string GetDataTypeName(int i) { return reader.GetDataTypeName(i); }
0
10. Example
View licensepublic override string GetDataTypeName(int i) { return _reader.GetDataTypeName(i); }
0
11. Example
View licensepublic override string GetDataTypeName(int ordinal) { return _reader.GetDataTypeName(ordinal); }
0
12. Example
View licensepublic override string GetDataTypeName(int ordinal) { return wrappedReader.GetDataTypeName(ordinal); }
0
13. Example
View licensepublic override string GetDataTypeName(int ordinal) { return _resultsReader.GetDataTypeName(ordinal); }
0
14. Example
View licensepublic override string GetDataTypeName(int ordinal) { return this.wrappedDataReader.GetDataTypeName(ordinal); }
0
15. Example
View licenseprivate static ColumnMetadata[] GetTableMetadata(DbDataReader reader) { var columnMetadata = new ColumnMetadata[reader.FieldCount]; for (var i = 0; i < reader.FieldCount; i++) { columnMetadata[i] = new ColumnMetadata { Name = reader.GetName(i), DataTypeName = reader.GetDataTypeName(i), DataType = reader.GetFieldType(i) }; } return columnMetadata; }
0
16. Example
View licensepublic override string GetDataTypeName(int ordinal) { InduceErrorIfClosed(); WaitForReaderOrThrow(); if (this.IsPseudoColumnReference(ordinal)) { return _finalSchemaTable.Rows[ordinal]["DataTypeName"] as string; } else { return this.GetCurrentDataReader().GetDataTypeName(ordinal); } }
0
17. Example
View licensepublic virtual Expression GetReaderExpression(MappingSchema mappingSchema, IDataReader reader, int i/n ..... /n //View Source file for more details /n }
0
18. Example
View licensepublic virtual Expression GetReaderExpression(MappingSchema mappingSchema, IDataReader reader, int i/n ..... /n //View Source file for more details /n }
0
19. Example
View licenseinternal static async Task<NResult> CreateAsync(DbDataReader reader, bool isMidstream, CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); var result = new NResult { schemaTable = reader.GetSchemaTable() }; List<object[]> recordsList = new List<object[]>(); int rowIndex = 0; // if we are in the middle of processing the reader then don't bother // to move to the next record - just use the current one. while (isMidstream || await (reader.ReadAsync(cancellationToken)).ConfigureAwait(false)) { if (rowIndex == 0) { for (int i = 0; i < reader.FieldCount; i++) { string fieldName = reader.GetName(i); result.fieldNameToIndex[fieldName] = i; result.fieldIndexToName.Add(fieldName); result.fieldTypes.Add(reader.GetFieldType(i)); result.fieldDataTypeNames.Add(reader.GetDataTypeName(i)); } result.colCount = reader.FieldCount; } rowIndex++; object[] colValues = new object[reader.FieldCount]; reader.GetValues(colValues); recordsList.Add(colValues); // we can go back to reading a reader like normal and don't need // to consider where we started from. isMidstream = false; } result.records = recordsList.ToArray(); return result; }
0
20. Example
View licenseinternal static NResult Create(DbDataReader reader, bool isMidstream) { var result = new NResult { schemaTable = reader.GetSchemaTable() }; List<object[]> recordsList = new List<object[]>(); int rowIndex = 0; // if we are in the middle of processing the reader then don't bother // to move to the next record - just use the current one. while (isMidstream || reader.Read()) { if (rowIndex == 0) { for (int i = 0; i < reader.FieldCount; i++) { string fieldName = reader.GetName(i); result.fieldNameToIndex[fieldName] = i; result.fieldIndexToName.Add(fieldName); result.fieldTypes.Add(reader.GetFieldType(i)); result.fieldDataTypeNames.Add(reader.GetDataTypeName(i)); } result.colCount = reader.FieldCount; } rowIndex++; object[] colValues = new object[reader.FieldCount]; reader.GetValues(colValues); recordsList.Add(colValues); // we can go back to reading a reader like normal and don't need // to consider where we started from. isMidstream = false; } result.records = recordsList.ToArray(); return result; }