Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

System.NotSupportedException

$
0
0

Line 1: var lstOldtp = GeneralAction.EM().Prospectoutlook_typeproperties.Where(p => p.ProspectOutlookClient_id == rtn);
Line 2: if (lstOldtp.Count() > 0)
Line 3: {
Line 4:        var delstOld = lstOldtp.Where(m => !POClient_interest.Any(n => n.TypeProperty_id == m.TypeProperty_id));
Line 5:         if (delstOld.Count() > 0)
Line 6:              GeneralAction.DeleteRecords<DynamicDataControllerModel.Prospectoutlook_typeproperty>(delstOld,

Line 7: GlobalEnum.CommitDatabase.FlushChanges);
Line 8: }

 

I got the error in when running Line 5

The following message I got 

System.NotSupportedException: An exception occurred during the execution of 'Extent<DynamicDataControllerModel.Prospectoutlook_typeproperty>().Where(p => (p.ProspectOutlookClient_id == value(FA.CRM.OutlookListing+<>c__DisplayClassb).rtn)).Where(m => Not(value(FA.CRM.OutlookListing+<>c__DisplayClassd).POClient_interest.Any(n => (n.TypeProperty_id == m.TypeProperty_id)))).Count()'. Failure: Execution of 'System.Linq.Enumerable:Any(IEnumerable`1,Func`2)' on the database server side currently not implemented.

 

Is there anything wrong with the logic. I can't see it any place. Any idea or Alternative?

 

Thank You,


Viewing all articles
Browse latest Browse all 94857

Trending Articles



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