我正在使用C#和Framework 4.5,并且具有linq的功能,如下所示:
return (from r in m_ds.pdfDbHelper.dtEmployee.AsEnumerable()
where Convert.ToInt32(r.Field<object>("Employee_NUMBER")) == Convert.ToInt32(dt)
select new Tuple<string, string, string>(Convert.ToString(r.Field<object>("EMPLOYEE_TYPE"))
, Convert.ToString(r.Field<object>("EMPLOYEE_DEFVALUE"))
, Convert.ToString(r.Field<object>("EMPLOYEEID")))
).FirstOrDefault();
如何解决此问题?我尝试初始化元组,但它没有产生任何结果。