Click here to Skip to main content
15,887,450 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I use samus driver, the project is a MVC4 project
this is my model:
C#
public class RepairProject
{
        [MongoId]
        public String Id { get; set; }
        public String Name { get; set; }
        public List<List<String>> RepairSteps { get; set; }
}


when I run to here(line 3), then throw the exception, the mean is cannot convert to List<>
C#
var list = collection.FindAll();
List<RepairProject> lists = new List<RepairProject>();
lists.AddRange(list.Documents);
return lists;


How can I solve this?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900