Hi all.
I need to select employeeID from tb_StaffMembers and put them in an Array.
here is my query:
var employIds = db.tb_staffMembers.Where(x => x.RoleId == 4).ToList().Select(x=>x.EmployeeId);
The query returns three IDs (2032, 2077, 2107) of which is correct.
now i want them in an array like : int [] array = new int[]{}
Please help.
shruthi palanPosted Mar 3, 2017, 5:32 AM
Sbonga MathobelaPosted Mar 3, 2017, 5:43 AM
shruthi palan
Rafnas T PPosted Mar 3, 2017, 5:31 AM