3
我有一个逗号分隔的字符串称为driverids。c#LINQ加入到逗号分隔字符串
我应该使用逗号分隔的列表还是使用逗号分隔列表的数组来在连接中使用它。
我该如何在linq中使用join到这些driverids?
_currentDriverData.AddRange(elementsCurrent.Join(driverids)
// gets distinct driver ids from the driver duty status change logs;
string driverids = string.Join(",", _logsDutyStatusChange
.Select(item => item.did)
.Distinct()
.ToArray());
//gets all current driver information
//_currentDriverData.AddRange(elementsCurrent.Where(drivers)
_currentDriverData.AddRange(elementsCurrent.Join(driverids).Select.........
什么是你想给他们加盟? – recursive 2011-04-18 15:37:38
我想在我的选择中只获取那些驱动程序ID – user380432 2011-04-18 15:39:18