Notifications
Announcements
No record found.
Hi all,
Can you please tell me why we use LINQ in our MSCRM.
With regards,
Praveen Kumar reddy C
*This post is locked for comments
Why you personally? Not sure anyone can tell you other than your devs. But in general, because it's supported. msdn.microsoft.com/.../gg328328.aspx
Hi Praveen,
LINQ is useful with CRM if you want to query for records and you're using early bound classes (a Contact class with properties, as opposed to DynamicEntity). Using LINQ can be easier syntactically because it's more similar to SQL, where as Query Expressions require you to build up classes with the query details. Also, values in a LINQ result are evaluated as they're used, where a standard query gets back a page of data up front.
I usually use Query Expressions to get back the data because that's available for all versions of CRM and I have to work with everything from 2011 and up, but if you're on Online only you may find LINQ is a convenient way to query for data.
Hope this helps! I'd appreciate if you'd mark this as Answering your question.
Thanks,
Aiden
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2