Polymorphic MVC Views
问题 So I am making a registration page in ASP.NET MVC and theres a list of fields which changes depending on a number of conditions (taken from a database). What would be considered the best approach for displaying these fields on a view without code changes each time the DB is updated. The current system I am thinking about is making a Dictionary with "Name, DataType" then just iterating through the list and putting a new input type of each name (using a switch for data type to get the correct