拉姆达表达式自定义字段并调用


        
IList < FileDataInfo > list = ifileManage.Search(searchFile).Where(c => c.FileTypeID == 1 || c.FileTypeID == 2).
OrderByDescending(c =>  new  { ProjectName = c.FileTypeID == 1 ? (ProjectUtils.GetProjectName(c.RefererID)) : ProjectUtils.GetProjectName(ProjectUtils.GetProjectSub(c.RefererID).ProjectID) }.ProjectName).ToList();

你可能感兴趣的:(自定义字段,拉姆达)