Visual Studio has this Feature.
- Create Blazor Web Project
- Right click Project, select "Add" and "New Scaffolded Item..."
- You get a list of templates, I believe from here GitHub - dotnet/Scaffolding: Code generators to speed up development.
Does Telerik plan on adding any templates for New Scaffolded Item?
I have imagined I chose "EF Core API to Telerik Grid" as a template. I select the DbContext and Entity from a wizard and press Go. Then it will scaffold for me, with wonderfully crafted models and dependency injection repository pattern, service pattern, controller patterns:
- Server Side
- DTO Model or database model
- Mapping from Entity to DTO
- Repository Pattern: Entity Repository with CRUD
- Service to Call Repository
- Controller to call Service
- Client Side
- View Model
- Mapping from DTO to View Model
- HTTP Service to call Controller
- Razor Page with Telerik Grid
- Using View Model to build default columns
- Default Telerik Editor features
- Or a choice between in-line and modal editors
- Razor.cs calls HTTP Service
- Razor.cs has all CRUD functions
Why? Because I've done this cookie-cutter, boilerplate type of thing so many times I think it should become a candidate for integration into Visual Studio as "Add New Scaffolded Item".
Does Telerik plan to work on this? Perhaps I could help contribute