IQueryable<Document> Compare WIth Column Name

Posted by Community Admin on 03-Aug-2018 09:14

IQueryable<Document> Compare WIth Column Name

All Replies

Posted by Community Admin on 03-Feb-2011 00:00

Hi
I need to compare two IQueryable<Document>  i.e
 First Document ID have 
1
2
3
4
5
Second Document  ID have
3
4

so i want First Document ID 3,4 th another colums value?
How to do this using API?

Posted by Community Admin on 03-Feb-2011 00:00

Hi Jmr,

Please check this post. You can also use SequenceEqual or/and Queryable.Distinct

Kind regards,
Ivan Dimitrov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 03-Feb-2011 00:00

Hi
Thanks for your valuable reply

two documents have different columns  some columns only have equal column name and also i  want equal row value not except row values.

if i try that code i am getting "The method 'Except' is not supported" error..

please clear my doubt
Thanks

Posted by Community Admin on 21-Feb-2011 00:00

Hi
How do i use greater then equal operator while i use dynamic fields

DateTime dt;
dt = DateTime.Today;
Idoc = App.WorkWith()
                                 .Documents()
                                 .Where(dc => dc.Parent.Title == "ScheduleSession"
                                       && dc.Status == ContentLifecycleStatus.Live
                                       && dc.GetValue("DatePrinted") >= dt) 
                                 .Get();                    

Thanks
jmr

Posted by Community Admin on 25-Feb-2011 00:00

Hello Jmr,

Try using GetValue<T> , because the extension you use returns object and actually you should get an compilation error.

Kind regards,
Ivan Dimitrov
the Telerik team

This thread is closed