以前,我在我的模型中使用它
public List<SelectListItem> StatusList { get; set; } public string Status { get; set; }@H_403_4@这在我看来绑定到Dropdownlist
@Html.DropDownListFor(model => model.Status,Model.StatusList,"")@H_403_4@但如果我想用
public List<ICode> StatusList { get; set; }@H_403_4@其中ICode如下
public interface ICode { int Id { get; set; } ICodeGroup CodeGroup { get; set; } string ShortDescription { get; set; } string LongDescription { get; set; } }@H_403_4@我应该在视图和模型中做些什么?