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
var accountQuery = from C in CustomerModel.CustomerProfile where C.CustomerId == new Guid(customerProfileId) // Error here select C;
you need to generate new guid from the string and it should work