コード例 #1
0
        public override DataTable GetSchemaTable()
        {
            if (_schemaTable == null)
            {
                _schemaTable = DataProviderUtility.GetNewSchemaTable();
                _schemaTable.Rows.Add("Document", 0, typeof(object), null, false);
            }

            return(_schemaTable);
        }
コード例 #2
0
        public ColumnProcessor(IEnumerable <IColumn> columns)
        {
            Columns      = columns.ToArray();
            _schemaTable = DataProviderUtility.GetNewSchemaTable();

            int ordinal = 0;

            foreach (var column in columns)
            {
                string name = string.IsNullOrEmpty(column.Alias) ? column.Name.ToName() : column.Alias;
                _schemaTable.Rows.Add(name, ordinal++, typeof(object), column.Name, false);
            }
        }