Okay, so my assumptions about your returned type was a bit off.
I see that you have a List<Address> in your Person class. I'm not sure that there is any reasonable way for MVC to map to that type.
As for your P.s. question, the way to get out of code mode is to open a few more new lines before pasting code so that you have non-code lines to continue typing in after the code.
eric2820
Contributor
2777 Points
1161 Posts
Re: seeding a simple model
Feb 18, 2012 07:48 PM|LINK
Okay, so my assumptions about your returned type was a bit off.
I see that you have a List<Address> in your Person class. I'm not sure that there is any reasonable way for MVC to map to that type.
As for your P.s. question, the way to get out of code mode is to open a few more new lines before pasting code so that you have non-code lines to continue typing in after the code.
http://www.my-msi.net/Admin
blog
If a post helps you, please mark it as Ansered, thank-you.