'Where' condition is not passed to Salesforce
Posted: Fri 24 Jan 2014 09:08
Hi
After upgrading our dotConnect for Salesforce from 2.0 to 2.4 and EntityFramework from 5 to 6 some of the queries that we use have changed their behavior. For example,
will now get translated to something like
without the condition stated in 'Where' clause. This effectively starts batch-downloading all User objects in Salesforce which is extremely slow. Before the upgrade this query worked perfectly well:
Can you please suggest what can be the reason for this and how I can fix it?
Thanks
After upgrading our dotConnect for Salesforce from 2.0 to 2.4 and EntityFramework from 5 to 6 some of the queries that we use have changed their behavior. For example,
Code: Select all
var user = dbContext.Users.Where(x => x.Email == 'xxx').FirstOrDefault();
Code: Select all
SELECT Id, .... FROM User
Code: Select all
SELECT Id, .... FROM User WHERE Email = 'xxx'
Thanks