You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Visual Studio 2015 or MSBuild14.0, the compiler has an issue casting LINQ expressions. While attempting to translate a LINQ Expression to ZOQL, I get this error:
Unable to cast object of type 'System.Linq.Expressions.FieldExpression' to type 'System.Linq.Expressions.ConstantExpression'
This only happens with an expression that consists of two or more conditions, such as: _zuoraClient.QuerySingle<ZuoraInvoice>( i => i.InvoiceNumber == number && i.CustomerId == account.AccountId);
It does not happen with: _zuoraClient.QuerySingle<ZuoraInvoice>( i => i.InvoiceNumber == number);
The text was updated successfully, but these errors were encountered:
Hi,
When using Visual Studio 2015 or MSBuild14.0, the compiler has an issue casting LINQ expressions. While attempting to translate a LINQ Expression to ZOQL, I get this error:
Unable to cast object of type 'System.Linq.Expressions.FieldExpression' to type 'System.Linq.Expressions.ConstantExpression'
This only happens with an expression that consists of two or more conditions, such as:
_zuoraClient.QuerySingle<ZuoraInvoice>( i => i.InvoiceNumber == number && i.CustomerId == account.AccountId);
It does not happen with:
_zuoraClient.QuerySingle<ZuoraInvoice>( i => i.InvoiceNumber == number);
The text was updated successfully, but these errors were encountered: