'Programmatically creating WPF/ASP.net CRUD UI from Database
I have a requirement to build forms directly from a specific dataset format. I've gone one step of being able to create the database from the dataset using F#. Now I want to be able to create CRUD forms programmatically from the database. I've googled and checked for CRUD generators but couldn't find a suitable one for either WPF or asp.net. Websharper could have been a good option but F# is not an option as the employer wants C# even though the database generator was in F#. This I may have to convert to C# as well. Also I checked sharpkit but don't think is a viable solution. The reason for needing such a framework/application is that datasets come and go too quickly and design is not an issue. Having every time to design CRUD forms to be used just for a short while is tedious and time consuming.
Solution 1:[1]
Microsoft offers CRUD scaffolding through the Microsoft.EntityFrameworkCore libraries. It can take an existing SQL table and generate the supporting object, controllers, and CRUD classes, or it can take an object class and create a local database.
Here is a good example of the former, generating CRUD classes from an existing database: https://www.c-sharpcorner.com/article/will-perform-simple-scaffold-crud-operations-in-asp-net-core-using-ef-core/
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | ALUM22 |