System.Data.Common.DbDataReader.GetDataTypeName(int)

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 7

1. Example

Project: EDDiscovery
Source File: SQLiteCommandED.cs
View license
public override string GetDataTypeName(int ordinal) { return InnerReader.GetDataTypeName(ordinal); }

2. Example

Project: Glimpse
Source File: GlimpseDbDataReader.cs
View license
public override string GetDataTypeName(int ordinal)
        {
            return InnerDataReader.GetDataTypeName(ordinal);
        }

3. Example

View license
public override string GetDataTypeName(int i)
            {
                return reader.GetDataTypeName(i);
            }

4. Example

Project: ALinq
Source File: AccessDbConnection.cs
View license
public override string GetDataTypeName(int ordinal)
        {
            return source.GetDataTypeName(ordinal);
        }

5. Example

Project: ALinq
Source File: DataReader.cs
View license
public override string GetDataTypeName(int ordinal)
        {
            return source.GetDataTypeName(ordinal);
        }

6. Example

Project: ALinq
Source File: Connection.cs
View license
public override string GetDataTypeName(int ordinal)
        {
            return source.GetDataTypeName(ordinal);
        }

7. Example

Project: ALinq
Source File: Connection.cs
View license
public override string GetDataTypeName(int ordinal)
        {
            return source.GetDataTypeName(ordinal);
        }

8. Example

Project: nhibernate-core
Source File: ResultSetWrapper.cs
View license
public override string GetDataTypeName(int i)
		{
			return rs.GetDataTypeName(i);
		}

9. Example

View license
public override string GetDataTypeName(int i)
		{
			return reader.GetDataTypeName(i);
		}

10. Example

View license
public override string GetDataTypeName(int i)
		{
			return _reader.GetDataTypeName(i);
		}

11. Example

Project: NServiceKit
Source File: ProfiledDbDataReader.cs
View license
public override string GetDataTypeName(int ordinal)
        {
            return _reader.GetDataTypeName(ordinal);
        }

12. Example

View license
public override string GetDataTypeName(int ordinal)
        {
            return wrappedReader.GetDataTypeName(ordinal);
        }

13. Example

View license
public override string GetDataTypeName(int ordinal)
        {
            return _resultsReader.GetDataTypeName(ordinal);
        }

14. Example

View license
public override string GetDataTypeName(int ordinal)
        {
            return this.wrappedDataReader.GetDataTypeName(ordinal);
        }

15. Example

Project: SmartStoreNET
Source File: CachingCommand.cs
View license
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;
		}

16. Example

View license
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);
            }
        }

17. Example

Project: linq2db
Source File: DataProviderBase.cs
View license
public virtual Expression GetReaderExpression(MappingSchema mappingSchema, IDataReader reader, int i/n ..... /n //View Source file for more details /n }

18. Example

Project: AntData.ORM
Source File: DataProviderBase.cs
View license
public virtual Expression GetReaderExpression(MappingSchema mappingSchema, IDataReader reader, int i/n ..... /n //View Source file for more details /n }

19. Example

Project: nhibernate-core
Source File: NDataReader.cs
View license
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;
			}

20. Example

Project: nhibernate-core
Source File: NDataReader.cs
View license
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;
			}