These are some of the scarcely documented methods of SQL data reader:
CanGetColumnSchema(DbDataReader)
Gets a value that indicates whether a DbDataReader can get a column schema.
GetColumnSchema(DbDataReader)
Gets the column schema (DbColumn collection) for a DbDataReader.
When I call them on a data reader that reads from a select * from table
command, the 1st one says that column schema is not supported, which is frankly unhelpful. What does the reader need to return true and for the 2nd method to work?
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745069262a4609445.html
评论列表(0条)