MVC4 bind model to ICollection or List in partial
Given a Model public class Task { public int TaskId { get; set; } public string Title { get; set; } public ICollection<SomeData> Information { get; set; } } where public class SomeData { public int SomeDataId { get; set; } public string Description { get; set; } } I have a view @model myProject.Models.Task <div> @Html.LabelFor(model => model.Title) </div> <table> @Html.Partial("_InformationEdit", Model.Information.ToList(), new ViewDataDictionary(Html.ViewDataContainer.ViewData) { TemplateInfo = new System.Web.Mvc.TemplateInfo { HtmlFieldPrefix = "Information" }}) </table> and my partial is