// select the schema as the current table bool SelectSchema() { _table = null; var schema = GetSchema(); var scols = schema.Columns; var fields = Enumerable.Range(0, scols.Count) .Select(x => new CommonField { Name = scols[x].ColumnName, CType = CommonConverter.TypeToCommon(scols[x].DataType) }).ToArray(); Heading = CommonHeading.Create(fields); return(true); }