Skip to content

Add SqlDataAdapter Design and Toolbox attributes #3243

Description

@michell711

Image

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!

Please fix it.

Activity

  1. self-assigned this
    on Mar 26, 2025
  2. mdaigle commented on Mar 27, 2025

    @mdaigle
    Contributor

    Hi @michell711, can you please provide some example programs so that I can try to replicate what you're seeing?

  3. michell711 commented on Mar 28, 2025

    @michell711
    Author
  4. michell711 commented on Mar 28, 2025

    @michell711
    Author

    你好@michell711,您能否提供一些示例程序,以便我嘗試複製您所看到的內容?

    I have already replied. Is this sample information sufficient?

  5. mdaigle commented on Mar 31, 2025

    @mdaigle
    Contributor

    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!

  6. michell711 commented on Mar 31, 2025

    @michell711
    Author

    這還不夠。我們需要查看重現問題的實際程式碼,而不僅僅是症狀。例如,在不同的目標框架中匯入和使用函式庫的方式可能會有所不同,除非我們能夠看到程式碼本身,否則這些差異是不會顯現出來的。請附上展示 .NET Framework 4.8.1 中的工作行為和 .NET 8 中的損壞行為的範例項目,以便我可以查看。謝謝!

    我已經提供了直接的程式碼範例。
    請從這兩個鏈接下載文件

    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

  7. mdaigle commented on Mar 31, 2025

    @mdaigle
    Contributor

    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.

  8. michell711 commented on Mar 31, 2025

    @michell711
    Author

    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

  9. mdaigle commented on Mar 31, 2025

    @mdaigle
    Contributor

    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 believe adding that support would address this issue. I'll discuss with my team and we'll decide on the priority of this feature.

  10. 27 remaining items

  11. added this to the 7.0.0-preview4 milestone on Oct 9, 2025
  12. moved this from To triage to Backlog in SqlClient Boardon Oct 16, 2025
  13. removed their assignment
    on Oct 28, 2025
  14. modified the milestones: 7.0.0-preview4, on Jan 20, 2026
  15. modified the milestones: , 7.0.0-preview4 on Feb 12, 2026
  16. removed this from the 7.0.0-preview4 milestone on Feb 17, 2026
  17. michell711 commented on Feb 21, 2026

    @michell711
    Author

    @mdaigle @cheenamalhotra @paulmedynski
    Hello, may I ask if this bug has been fixed?
    After such a long time...where has it been categorized?

    =======================

    @michell711即使團隊或社群貢獻者修復了這個問題,我認為 Visual Studio 也需要進行一些工作。
    而且,只有你一個人提出這個功能需求。
    @ErikEJ @paulmedynski @mdaigle @benrr101 @cheenamalhotra

    尊敬的 ErikEJ: 感謝您的回覆。我非常敬佩您團隊的專業見解。

    (1)我理解「我認為 Visual Studio 也需要進行一些調整」的說法,但我想澄清一下,這個問題並非關於最佳化或增強。而是關於升級後原本存在的功能被移除或變得無法使用。舉例來說:這就像你原本有五根手指,升級後少了一根。這並非無關緊要的小麻煩,而是功能上的重大損失。

    (2) 關於「而且,你是唯一提出這個功能需求的人」這句話,恕我直言,我認為這可能並未完全反映真實情況。或許我是唯一一個在耐心等待三個多月後才抽出時間來提出這個需求的人。可能還有其他人需要這個功能,但他們缺乏時間、金錢或能力去等待。他們可能被迫放棄或徹底放棄.NET 8框架,這是一個艱難而痛苦的決定。雖然我的請求表面上看起來很簡單,但實際上它與一個持續運行了7-8年的ERP項目息息相關,關乎我們對客戶的承諾以及系統長期可靠性的保障。

    (3)對我影響最大的是我誤判了情勢。我原本以為只需要等待很短的時間——30天或60天——就能修復這個漏洞。但經過幾次修改,修復時間現在要等到明年五月。這讓我難以客觀評估問題的嚴重性,但不幸的是,這也嚴重影響了客戶對我的信任。

    儘管如此,我真心感謝有人抽出時間回覆。對我來說,即使只有一個人注意到這個問題,都意義重大——總比自言自語、求助無門要好得多。

    再次感謝您的時間和理解。 需要澄清的是,我並非在批評任何人——只是希望這些背景資訊能更清晰地說明其在現實世界中的影響。再次感謝您的時間。

  18. priyankatiwari08 commented on Sep 17, 2026

    @priyankatiwari08
    Contributor

    /triage

  19. github-actions commented on Sep 17, 2026

    @github-actions

    🔍 Triage Summary (on-demand re-triage)

    Check Result
    Issue type Feature
    Environment 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.
    • Review linked issue VS Designer support for Microsoft.Data.SqlClient #1297 before implementing, to avoid duplicate work and align on the correct attribute set.
    • 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.

    Generated by SqlClient Issue Auto-Triage for #3243 · copilot · auto · 89.7 AIC · ⌖ 13.1 AIC · ⊞ 11.9K · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions