You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Strongly-typed database schema API that doesn't rely on DataTable #19324
The current API to expose database schema is DbConnection.GetSchema(). This has some disadvantages:
Reliance on DataTable
A weakly-typed API. Aside from being less usable, this promotes less uniformity across providers as different weakly-typed properties can be populated.
A modern, strongly-typed resultset schema API has already been added - DbDataReader.GetColumnSchema() effectively replaces DbDataReader.GetSchema() which suffers from the same shortcomings as DbConnection.GetSchema().
Note the substantial previous discussion in #15953 which should be taken into account. The existing weakly-typed DataTable-based API can definitely serve as a starting point, but this is definitely the opportunity to clearly separate common metadata from SQL Server-centric metadata etc.
Well, @saurabh500 made a good start in #15953, it's worth pursuing that with the community. I'm not going to have the time to lead the discussion, although I'd be happy to review/contribute.
Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.
This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.
Activity
karelz commentedon Nov 10, 2016
We need formal API proposal. We expect it will be rather complex.
roji commentedon Nov 12, 2016
Note the substantial previous discussion in #15953 which should be taken into account. The existing weakly-typed DataTable-based API can definitely serve as a starting point, but this is definitely the opportunity to clearly separate common metadata from SQL Server-centric metadata etc.
karelz commentedon Nov 12, 2016
@roji do you plan to create the proposal?
roji commentedon Nov 12, 2016
Well, @saurabh500 made a good start in #15953, it's worth pursuing that with the community. I'm not going to have the time to lead the discussion, although I'd be happy to review/contribute.
dotnet-policy-service commentedon Dec 23, 2024
Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.
This process is part of our issue cleanup automation.
dotnet-policy-service commentedon Jan 6, 2025
This issue will now be closed since it had been marked
no-recent-activitybut received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.