关于 linq转化问题
错误 1 无法将类型“System.Collections.Generic.IEnumerable<ChinaRatings.BusinessEntity.Job.JobApplicant>”隐式转换为“System.Collections.Generic.List<ChinaRatings.BusinessEntity.Job.JobApplicant>”。存在一个显式转换(是否缺少强制转换?)
------解决方案--------------------
List<JobApplicant> list = JobApplicant.GetAll().Where(n => GetCondition(n)).Skip(3).ToList();
------解决方案--------------------
Expression<Func<JobApplicant, bool>> expr = n => GetCondition(n);
List<JobApplicant> list = JobApplicant.GetAll().Where<JobApplicant>(expr.Compile()).Skip(3).ToList().;
GridViewAllData.DataSource =list;
GridViewAllData.DataBind();