asp.net mvc : How to Create razor view form dynamically at run time according to html fields deyails stored in database table : [Image of Table Structure with Data][1]
  [1]: https://i.stack.imgur.com/4OAHz.jpg
----------
Table structure is as bellow :<br/> 
###Id|Category|DisplayName|FieldName|FieldType|FieldLength|IsRequired<br/>
Please see image for details.
On selection of a category all HTML fields defined in table against that category should populate in view.<br/>
And how to validate on form submit.<br/>
I have more than 400 categories.