Example #1
0
        public static void ColMetaData(this TdsPackageReader reader, int columns)
        {
            reader.InitNbcBitmap(columns);

            var newMetaData = new ColumnsMetadata(columns);

            for (var i = 0; i < columns; i++)
            {
                ReadMetadata(reader, newMetaData[i]);
            }
            reader.CurrentResultSet.ColumnsMetadata = newMetaData;
        }
        public static MetadataBulkCopy[] ColMetaDataBulkCopy(this TdsPackageReader reader, int columns)
        {
            reader.InitNbcBitmap(columns);

            var newMetaData = new MetadataBulkCopy[columns];

            for (var i = 0; i < columns; i++)
            {
                newMetaData[i] = ReadMetadata(reader);
            }
            return(newMetaData);
        }