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
Project: EDDiscovery
Source File: SQLiteCommandED.cs
Source File: SQLiteCommandED.cs
public override string GetDataTypeName(int ordinal) { return InnerReader.GetDataTypeName(ordinal); }
0
2. Example
Project: Glimpse
Source File: GlimpseDbDataReader.cs
Source File: GlimpseDbDataReader.cs
public override string GetDataTypeName(int ordinal) { return InnerDataReader.GetDataTypeName(ordinal); }
0
3. Example
Project: ALinq
Source File: ObjectReaderCompiler.Rereader.cs
Source File: ObjectReaderCompiler.Rereader.cs
public override string GetDataTypeName(int i) { return reader.GetDataTypeName(i); }
0
4. Example
Project: ALinq
Source File: AccessDbConnection.cs
Source File: AccessDbConnection.cs
public override string GetDataTypeName(int ordinal) { return source.GetDataTypeName(ordinal); }
0
5. Example
Project: ALinq
Source File: DataReader.cs
Source File: DataReader.cs
public override string GetDataTypeName(int ordinal) { return source.GetDataTypeName(ordinal); }
0
6. Example
Project: ALinq
Source File: Connection.cs
Source File: Connection.cs
public override string GetDataTypeName(int ordinal) { return source.GetDataTypeName(ordinal); }
0
7. Example
Project: ALinq
Source File: Connection.cs
Source File: Connection.cs
public override string GetDataTypeName(int ordinal) { return source.GetDataTypeName(ordinal); }
0
8. Example
Project: nhibernate-core
Source File: ResultSetWrapper.cs
Source File: ResultSetWrapper.cs
public override string GetDataTypeName(int i) { return rs.GetDataTypeName(i); }
0
9. Example
Project: nhibernate-core
Source File: BasicResultSetsCommand.cs
Source File: BasicResultSetsCommand.cs
public override string GetDataTypeName(int i) { return reader.GetDataTypeName(i); }
0
10. Example
Project: nhibernate-core
Source File: NHybridDataReader.cs
Source File: NHybridDataReader.cs
public override string GetDataTypeName(int i) { return _reader.GetDataTypeName(i); }
0
11. Example
Project: NServiceKit
Source File: ProfiledDbDataReader.cs
Source File: ProfiledDbDataReader.cs
public override string GetDataTypeName(int ordinal) { return _reader.GetDataTypeName(ordinal); }
0
12. Example
Project: nuodb-dotnet
Source File: NuoDbMultipleCommands.cs
Source File: NuoDbMultipleCommands.cs
public override string GetDataTypeName(int ordinal) { return wrappedReader.GetDataTypeName(ordinal); }
0
13. Example
Project: OrionSDK
Source File: InformationServiceDataReader.cs
Source File: InformationServiceDataReader.cs
public override string GetDataTypeName(int ordinal) { return _resultsReader.GetDataTypeName(ordinal); }
0
14. Example
Project: effort
Source File: DataReaderInspectorDataReader.cs
Source File: DataReaderInspectorDataReader.cs
public override string GetDataTypeName(int ordinal) { return this.wrappedDataReader.GetDataTypeName(ordinal); }
0
15. Example
Project: SmartStoreNET
Source File: CachingCommand.cs
Source File: CachingCommand.cs
private 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
Project: elastic-db-tools
Source File: MultiShardDataReader.cs
Source File: MultiShardDataReader.cs
public 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
Project: linq2db
Source File: DataProviderBase.cs
Source File: DataProviderBase.cs
public virtual Expression GetReaderExpression(MappingSchema mappingSchema, IDataReader reader, int i/n ..... /n //View Source file for more details /n }
0
18. Example
Project: AntData.ORM
Source File: DataProviderBase.cs
Source File: DataProviderBase.cs
public virtual Expression GetReaderExpression(MappingSchema mappingSchema, IDataReader reader, int i/n ..... /n //View Source file for more details /n }
0
19. Example
Project: nhibernate-core
Source File: NDataReader.cs
Source File: NDataReader.cs
internal 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
Project: nhibernate-core
Source File: NDataReader.cs
Source File: NDataReader.cs
internal 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; }