Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7490885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:46:58+00:00 2026-05-29T15:46:58+00:00

We found out that Linq for CRM 2011 is horribly broken – it seems

  • 0

We found out that Linq for CRM 2011 is horribly broken – it seems to have gotten in without any QA performed on it. An indicator as how badly broken the provider is a query like .Where(x => x== “b”) works but this .Where(x => “b” == x) might not depending on some preceding condition like a join statement. I have actually had to rewrite parts of the query provider and am enjoying better luck with the crap I put together.

However this can’t go on, there are still other issues and I’m not paid to to work for MS, so I’m looking at alternatives. These 2 came up QueryExpression & FetchXml as detailed here: http://msdn.microsoft.com/en-us/library/gg334607.aspx

Can anyone give me an honest, real life pros and cons of using QueryExpression vs. FetchXml? I would like to know how they compare in terms of performance, development speed, robustness and flexibility.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T15:46:59+00:00Added an answer on May 29, 2026 at 3:46 pm

    In my opinion, I usually go for Linq or FetchXml depending for the requirements.

    For the Linq: In case for early-bound, I like using Linq because it’s strongly typed and It helps much for development speed, but as you stated above, it has its disadvantages.

    For the FetchXML: I really love using this magic statement:

    EntityCollection result = _serviceProxy.RetrieveMultiple(new FetchExpression(fetch2));
    
    foreach (var c in result.Entities)
    {
       System.Console.WriteLine(c.Attributes["name"]);
    }
    

    Why? Because it’s very similar of using the QueryExpression in addition of the aggregation and grouping.
    The only thing I hate about FetxhXML is that it’s hard to build, unlike the Linq.

    For building FetchXML queries, I have to open the Advanced-Find then add columns then put my criteria and so on, finally I download it and copy it into my code, and so on.

    Finally, the FetchXML has the least limitations among the others.

    Regarding the performance I’ve tried to benchmark between Linq and FetchXML for same query using StopWatch, the result was FetchXML is faster than the Linq.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found out that in order to open a Gmail compose screen you'd have
I have found an extension method that handles sorting and paging for LINQ .
Unfortunately I found out that LINQ ignores the default values when inserting rows. The
I found out that build time of C# solution with many projects gets much
I found out that I can use a different theme in an C# WPF
I found out that HTML form supports only two enctype types. They are application/x-www-form-urlencoded
I found out that the FormWizard only __init__ 's once, when the url is
Just found out that the video output of the iPad is not a system
I just found out that by converting PNG32 to PNG8 via Photoshop will fix
EDIT: I found out that I can get it to compile if I cast

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.