none
The parameter 'CustomerProduct' was not bound in the specified LINQ to Entities query expression RRS feed

  • Question

  • I am generating a dynamic LINQ expression as follows - 

    {Customer => Customer.CustomerProducts.Any
                    (CustomerProduct => 
                                    (
                                                    (CustomerProduct.BoughtDate >= Convert(9/1/2017 12:00:00 AM)) And 
                                                    (CustomerProduct.BoughtDate <= Convert(9/10/2017 12:00:00 AM))
                                    )
                    )
    }

    However, it throws an error as 'The parameter 'CustomerProduct' was not bound in the specified LINQ to Entities query expression'. Not sure what's wrong in above generated linq query.

    Any help on this, very much appreciated.

    Tuesday, January 9, 2018 10:10 AM

All replies