QueryExpression
class is defined inside the namespace Microsoft.Xrm.Sdk.Query
(from Microsoft.Xrm.Sdk.dll
) and it has 2 constructors:
public QueryExpression();
public QueryExpression(string entityName);
if you got an error probably you are not referencing the dll included inside the CRM 2011 SDK