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
Add SqlDataAdapter Design and Toolbox attributes #3243
This is what the sqlDataAdapter in .net 4.8 can do.
But when I upgraded to .net 8.0
And use>Microsoft.Data.SqlClient
A very simple "automatically generate SQL syntax and SQL parameters - window design function",
=>Disappeared!
The point is that the [...] of sqlcommand disappears.
Previously, when you clicked
The "Automatic-SQL Syntax Query Tool" may appear.
"SQL parameters" will also be automatically generated.
Now these features are "gone"
It's not sufficient. We'll need to see the actual code that reproduces the issue, not just the symptom. For example, there may be differences with how libraries need to be imported and used across different target frameworks that are not apparent unless we can see the code itself. Please attach example projects that show the working behavior in .NET Framework 4.8.1 and broken behavior in .NET 8 and I can take a look. Thanks!
I see, your links have an incorrect hyperlink and just take me to the issues page for this repo. But copying the location straight into the address bar works.
I see, your links have an incorrect hyperlink and just take me to the issues page for this repo. But copying the location straight into the address bar works.
I noticed that you updated from System.Data.SqlClient to Microsoft.Data.SqlClient. Looking around, I did find some existing issues that look similar having to do with VS Designer support for Microsoft.Data.SqlClient.
Not applicable (feature request, not a bug) — root cause and repro already confirmed by maintainers in thread
Area
Area\Netcore
Duplicates
Potentially related: #1297 (VS Designer support for Microsoft.Data.SqlClient), plus external Developer Community item linked by @mdaigle
Regression
Confirmed regression — the "Design" and "Toolbox" attributes present on SqlDataAdapter/related types under .NET Framework 4.8 (via System.Data.SqlClient) are missing from the Microsoft.Data.SqlClient implementation used on .NET 8/9, causing the Visual Studio auto-generated SQL/parameter designer tooling to no longer appear
Analysis
This is a long-running feature request (opened March 2025) asking that SqlDataAdapter regain the DesignerCategory/ToolboxItem-style attributes it had in System.Data.SqlClient, which power the VS "Query Builder"/auto-generate SQL and parameters designer experience. Maintainer @mdaigle already confirmed the root cause in src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlDataAdapter.cs (missing design/toolbox attributes) and it has been tentatively slated for the 7.1.0 milestone. Severity is P2 — it's a design-time tooling regression (not a runtime/data-correctness bug), but it materially affects developer workflow for users migrating long-lived apps from .NET Framework to .NET 8/9.
Next Steps
Recommend assigning to Copilot coding agent to investigate restoring the missing DesignerCategory/ToolboxItem/related design-time attributes on SqlDataAdapter (and any sibling designer-surfaced types) in src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlDataAdapter.cs, comparing against the legacy System.Data.SqlClient/netfx attribute set, and updating the corresponding ref/ reference assembly if any public attribute surface changes.
Verify with a minimal WinForms/VS designer repro project (as the reporter attempted to share) that the "Auto-generate SQL" and parameter designer flow is restored once attributes are added; note this depends on Visual Studio-side designer support as flagged by @ErikEJ, so full resolution may require coordination beyond this repo.
Since this was tentatively targeted at the 7.1.0 milestone per maintainer comments, confirm milestone status is still accurate before starting implementation.
Note: This triage summary is auto-generated by an AI agent. The analysis and suggestions above have not been verified by a human maintainer. Please treat as preliminary guidance only.
Activity
mdaigle commentedon Mar 27, 2025
Hi @michell711, can you please provide some example programs so that I can try to replicate what you're seeing?
michell711 commentedon Mar 28, 2025
https://kalachakra-my.sharepoint.com/:u:/g/personal/michell_kalachakra_onmicrosoft_com/EQ3p2dxvL3RJghNSUkmSgaIBU5S31lMc9G0RZK62Lwm9sA
The point is that the [...] of sqlcommand disappears.
Previously, when you clicked
The "Automatic-SQL Syntax Query Tool" may appear.
"SQL parameters" will also be automatically generated.
Now these features are "gone"
https://kalachakra-my.sharepoint.com/:u:/g/personal/michell_kalachakra_onmicrosoft_com/ESFrHJcAOfdBmnGXZCpTODIBrvB0v2oAggjayTH37R8dAQ?e=4lVj5r
michell711 commentedon Mar 28, 2025
I have already replied. Is this sample information sufficient?
mdaigle commentedon Mar 31, 2025
It's not sufficient. We'll need to see the actual code that reproduces the issue, not just the symptom. For example, there may be differences with how libraries need to be imported and used across different target frameworks that are not apparent unless we can see the code itself. Please attach example projects that show the working behavior in .NET Framework 4.8.1 and broken behavior in .NET 8 and I can take a look. Thanks!
michell711 commentedon Mar 31, 2025
我已經提供了直接的程式碼範例。
請從這兩個鏈接下載文件
https://kalachakra-my.sharepoint.com/:u:/g/personal/michell_kalachakra_onmicrosoft_com/EQ3p2dxvL3RJghNSUkmSgaIBU5S31lMc9G0RZK62Lwm9sA
https://kalachakra-my.sharepoint.com/:u:/g/personal/michell_kalachakra_onmicrosoft_com/ESFrHJcAOfdBmnGXZCpTODIBrvB0v2oAggjayTH37R8dAQ?e=4lVj5r
mdaigle commentedon Mar 31, 2025
I see, your links have an incorrect hyperlink and just take me to the issues page for this repo. But copying the location straight into the address bar works.
michell711 commentedon Mar 31, 2025
I see, your links have an incorrect hyperlink and just take me to the issues page for this repo. But copying the location straight into the address bar works.
Thank u
mdaigle commentedon Mar 31, 2025
I noticed that you updated from System.Data.SqlClient to Microsoft.Data.SqlClient. Looking around, I did find some existing issues that look similar having to do with VS Designer support for Microsoft.Data.SqlClient.
I also see mention in the code of missing design and toolbox attributes: https://github.com/dotnet/SqlClient/blob/main/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlDataAdapter.cs#L19
I believe adding that support would address this issue. I'll discuss with my team and we'll decide on the priority of this feature.
27 remaining items
michell711 commentedon Feb 21, 2026
@mdaigle @cheenamalhotra @paulmedynski
Hello, may I ask if this bug has been fixed?
After such a long time...where has it been categorized?
=======================
priyankatiwari08 commentedon Sep 17, 2026
/triage
github-actions commentedon Sep 17, 2026
🔍 Triage Summary (on-demand re-triage)
Area\Netcore@mdaigleSqlDataAdapter/related types under .NET Framework 4.8 (viaSystem.Data.SqlClient) are missing from theMicrosoft.Data.SqlClientimplementation used on .NET 8/9, causing the Visual Studio auto-generated SQL/parameter designer tooling to no longer appearAnalysis
This is a long-running feature request (opened March 2025) asking that
SqlDataAdapterregain theDesignerCategory/ToolboxItem-style attributes it had inSystem.Data.SqlClient, which power the VS "Query Builder"/auto-generate SQL and parameters designer experience. Maintainer@mdaiglealready confirmed the root cause insrc/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlDataAdapter.cs(missing design/toolbox attributes) and it has been tentatively slated for the 7.1.0 milestone. Severity is P2 — it's a design-time tooling regression (not a runtime/data-correctness bug), but it materially affects developer workflow for users migrating long-lived apps from .NET Framework to .NET 8/9.Next Steps
DesignerCategory/ToolboxItem/related design-time attributes onSqlDataAdapter(and any sibling designer-surfaced types) insrc/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlDataAdapter.cs, comparing against the legacySystem.Data.SqlClient/netfxattribute set, and updating the correspondingref/reference assembly if any public attribute surface changes.@ErikEJ, so full resolution may require coordination beyond this repo.