Hi All,
I am having the trouble in below lines of code
var res = (from c in orgContext.CreateQuery("contact")
join a in orgContext.CreateQuery("annotation") on c["contactid"] equals a["objectid"]
where (bool)a["isdocument"] == true && (int)a["objecttypecode"] == GetObjectTypeCode("contact")
orderby(a["createdon"]) descending
select new
{
GUID = c["contactid"],
FirstName=c["firstname"]
}).Take(5).Distinct();
I have use the orderby clause here showing as above , But it's throwing an error.
Can anybody help me , how to resolve this issue.
and also i want to use the oderby in queryexpression class in c# application.
*This post is locked for comments
I have the same question (0)