DbDataReaderExtensions.GetColumnSchema(DbDataReader) Method

Definition

Gets the column schema (DbColumn collection) for a DbDataReader.

C#
public static System.Collections.ObjectModel.ReadOnlyCollection<System.Data.Common.DbColumn> GetColumnSchema(this System.Data.Common.DbDataReader reader);

Parameters

reader
DbDataReader

The DbDataReader to return the column schema.

Returns

The column schema (DbColumn collection) for a DbDataReader.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1