Info
Version: | 1.0.1 |
Author(s): | Jan Lenoch |
Last Update: | Thursday, January 5, 2017 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/Kentico.MvcCodeGenerator |
Install
Install-Package Kentico.MvcCodeGenerator
dotnet add package Kentico.MvcCodeGenerator
paket add Kentico.MvcCodeGenerator
Kentico.MvcCodeGenerator Download (Unzip the "nupkg" after downloading)
Such model is supposed to be passed into the repository which in turn passes the form data to the class generated by the standard Code tab in the Forms application. The DataAnnotation attributes allow for leveraging of the existing rich ASP.NET MVC 5 validation infrastructure while preserving full control over HTML with standard display templates and/or partial views.
The generator also creates the partial view code using Razor.