Operator '==' cannot be applied to operands of type 'System.Guid' and 'string' in linq to entity

Я получаю эту ошибку 'Operator '==' cannot be applied to operands of type 'System.Guid' and 'string'' in linq to entityframework below code. В приведенном ниже коде CustomerId является Guid, а CustomerProfileId является строкой.

var accountQuery = from C in CustomerModel.CustomerProfile
                  where C.CustomerId == customerProfileId // Error here                    
                 select C;
13
задан Kirill Polishchuk 4 November 2011 в 13:19
поделиться