I am trying to figure out the basic structure for an online survey, using the MVC architecture. In order to user the html helpers in the view, it seems I would need to build the db in such a way, that each question was it's own column, because the properties in a model, correspond to the columsn of a db. So for something like @Html.TextBoxFOr(m => m.Question1) to work, it would need to be a column.
However, I have found a couple examples of survey dbs on line and there are built like:
Question(id, questiontext)
I guess I could do that, and just loop through to display the questions on the view, but I don't see how to map the questions in the view, to the database, other than by hand.
Another option might be to setup the db like:
Question(id, question1, question2, question3, etc)
Only problem here, is I may end up with as much as 500 questions for one survey.
So, I am hoping some can lend me some guidance, or share a link, on how to do this. Thanks.