Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

sharePoint Linq error

$
0
0
  

 when i wtite this sharepoint linq query 

var Announcement = (from cust in dataContext.Announcements.ToList()
                                where
                                 (cust.AnnouncementType.AnnouncementType == "External")
                                ||
                                (cust.AnnouncementType.AnnouncementType == "Both")
                                 &&
                                  cust.ISHidden == false
                                orderby cust.PriorityNumber
                                select
                                new

                                {
                                    cust.Id,
                                    cust.PictureURL,
                                    cust.AnnouncementType.AnnouncementType
                                });

i get this error

At least one object must implement IComparable.


Nour


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>