columns = (from DataRow r in reader.GetSchemaTable().AsEnumerable() select new ColumnSchema { ColumnName = (String) r["ColumnName"], ColumnSize = (Int32) r["ColumnSize"], DbType = (SqlDbType) r["ProviderType"], DataType = reader.GetFieldType((int)r["ColumnOrdinal"]), Precision = (Int16) r["NumericPrecision"], Scale = (Int16) r["NumericScale"], IsIdentity = (Boolean) r["IsIdentity"] }).ToList();I am going to debug it in a few minutes and see what needs to be adjusted.