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

后端 未结 2 1315
时光取名叫无心
时光取名叫无心 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!

提交回复
热议问题