S#arp Architecture incluye generador de andamios utilizando T4. Genera modelos, vistas, controladores y pruebas a partir de la definición del modelo de plantilla. Obtienes CRUD completo. Como usa T4 (supongo que es el lenguaje de plantilla de Visual Studio), puede ampliar las plantillas predeterminadas como desee.
He aquí un ejemplo de la plantilla:
EntityScaffoldingDetails entityScaffoldingDetails =
new EntityScaffoldingDetails("Organization.Worker");
/*
* Property names should be PascalCase.
* Do not include a property for Id as it will be included automatically.
*/
entityScaffoldingDetails.EntityProperties.Add(
new EntityProperty("FirstName", "string", "Joe", "[NotNull, NotEmpty]", true)
);
entityScaffoldingDetails.EntityProperties.Add(
new EntityProperty("LastName", "string", "Smith", "[NotNull, NotEmpty]", true)
);
entityScaffoldingDetails.EntityProperties.Add(
new EntityProperty("BirthDate", "DateTime", DateTime.Parse("1/1/1975"))
);
entityScaffoldingDetails.EntityProperties.Add(
new EntityProperty("Manager", "Employee", null, "[NotNull]")
);
///////////////////////////////////////////////////
// The first parameter should reflect the root directory of your solution
//ScaffoldingGenerator generator = new ScaffoldingGenerator(
//@"D:\Work\Project\", "Orders", entityScaffoldingDetails);
// Uncomment this line when you're ready for the scaffolding generator to fire...be sure to recomment after it completes to avoid accidental generating!
//generator.Run();
Una pequeña adición: Me no recomendaría su uso como es, porque, por ejemplo, preferiría controladores para trabajar con modelo de vista, no entidades . Y yo no uso andamios mucho. Pero es bastante flexible, aunque es posible que deba aprender T4.
Me parece que Jon Skeet es un excelente generador de códigos. –