SyntaxFix
Write A Post
Hire A Developer
Questions
Try something like this:
var empList = ds.Tables[0].AsEnumerable() .Select(dataRow => new Employee { Name = dataRow.Field<string>("Name") }).ToList();