I am getting this error \'Operator \'==\' cannot be applied to operands of type \'System.Guid\' and \'string\'\' in linq to entityframework below code. in the below code Cus
Change it to:
var accountQuery = from C in CustomerModel.CustomerProfile where C.CustomerId.ToString() == customerProfileId select C;
Or parse your customerProfileId to a Guid and use that in the query.