Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Kentico/MvcCodeGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kentico MVC Code Generator

A preview of a code generator that generates repository model code for Kentico Online Forms using the System.ComponentModel.DataAnnotations attributes. 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.

The repository accompanies the DevNet article Render Online Forms with ASP.NET MVC Display Templates and The Code Generator—Part 2

Installation & Contributing

  1. Read the contribution guidelines

  2. Enable the continuous integration module

  3. Serialize all objects to disk

  4. Open a command prompt

  5. Navigate to the root of your project (where the .sln file is)

  6. Fork this repo

  7. Init a git repo and fetch the web part

    git init git remote add origin https://github.com/owner/MvcCodeGenerator.git git fetch git checkout -t origin/master

  8. Restore DB data

    Kentico\CMS\bin\ContinuousIntegration.exe -r

  9. Make changes

  10. Use combination of git add, git commit and git push to transfer your changes to GitHub

    git status git commit -a -m "Fixed XY" git push

  11. Submit a pull request

Requirements

  • Kentico 10
  • Microsoft .NET Framework 4.5+
  • Visual Studio 2015 Update 1+

Note: The source code files for Kentico 9 can be downloaded from the article mentioned above.

Analytics