How to create editor for database view (with joins) in Windows Forms/WPF?

后端 未结 2 1316
时光取名叫无心
时光取名叫无心 2021-02-15 18:12

What would be the simplest way to create a quick editor for some data in the database in WPF/WinForms, where the data is represented by a View in the SQL Server database?

<
相关标签:
2条回答
  • 2021-02-15 18:48

    You are describing what is known as scaffolding in web development. Scaffolding is a way to automatically generate UIs for each table in the database. Scaffolding lets you create a functional UI for viewing and editing data based on the schema of the data. Here are a couple of resources for WPF scaffolding.

    1. There is a WPF scaffolding article on the Code Project website: WPF CRUD Generator (Scaffolding)
    2. There is also a Codeplex project that could be helpful: WPF Scaffolder

    Enjoy!

    0 讨论(0)
  • 2021-02-15 18:52

    ASP .NET Dynamic Data uses templates to auto-generate a UI for you that will represent the database tables/views you choose, including the auto-generated CRUD capabilities you want.

    It even gets the lookup tables right and renders dropdowns automatically.

    http://msdn.microsoft.com/en-us/library/ee845452(v=vs.100).aspx

    0 讨论(0)
提交回复
热议问题