HOW TO: Using LINQ to get a Record Count in MSCRM 2011
While writing assemblies for MSCRM 2011 the chances are at some point you will want to get a record count. Its a typical check right? Perform a search on a set criteria, retrieve the record count from your search and decide what to do on the outcome of the count. Well when coding the LINQ statement to achieve this you might of noticed the Count method. However using that method will give you the following error message “The method ‘Count’ is not supported”. Strange, well I decided to check the SDK for the best way to get a count… Nothing… I decided to check the programming samples for latebinding through LINQ… Nothing…
Read more about HOW TO: Using LINQ to get a Record Count in MSCRM 2011 …