) Lista = ((IEnumerable)list).Cast<object>().ToList(); // Cast the object list to List// create new column in listView }
}
唯一的问题是,如果传递一个没有对象的列表,我不知道如何获得Some
但我仍然希望使用sql tables class.Here作为我的示例,使用Enity框架为POCO类仅选择SQL中的某些列。//in the controller I get back a list of student entitiespublic IEnumerable<Student> GetStudents()