Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loaded RecordSet.Column.DataType is null in case of some ADO.NET providers #65

Closed
VitaliyMF opened this issue Mar 2, 2021 · 0 comments
Assignees
Labels

Comments

@VitaliyMF
Copy link
Contributor

This happens in this case:

  • ADO.NET provider inherits netstandard2.0 DbDataReader class
  • and doesn't override GetColumnSchema method which returns only column name in the System.Data.Common.DbColumn (DataType is null)

How to fix: if DataType=null resolve column data type with IDataReader.GetFieldType method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant