At the start of any project, once you've got your object model there then comes a period of tedium as you crank out the skeleton code required.
Are there any tools that will help me with this task (including unit test skeletons if possible), a bit like the scaffolding feature in Rails?
Thanks.
Basically, it is an automated code generation framework, it generates code for CRUD operations based on the provided domain model classes and DB connections. You can add scaffolding to your project when you want to add code that interacts with the data model in the shortest amount of time.
ASP.NET Scaffolding is a code generation framework for ASP.NET Web applications. Visual Studio 2013 includes pre-installed code generators for MVC and Web API projects. You add scaffolding to your project when you want to quickly add code that interacts with data models.
Scaffolding blends with Entity framework and creates us the instance for the mapped entity model and writes down CRUD Operations code for us.
Scaffolding in ASP.NET Core is a technique used to generate code at design time to support a number of common application scenarios when working with Entity Framework Core. The code generation tool is available as a Nuget package.
It really depends on the framework stack that you're using:
Other that than, you could always code your own "scaffolding" using CodeSmith or MyGeneration
Also see this related question
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With