When working on a code upgrade I'm having troube comparing a optionsetvalue to an int.
The fix I put in (via a visual studio suggestion) doesn't work.
Can anyone point me in the right direction?
Thanks
my code is
IEnumerable<int?> myVariable = from entity in serviceContext.crm_entitySet
where entity.statuscode == 1
&& entity.crm_enityItemId.Id == _entityItemId
select entity.statuscode;
the error is on there "where entity.statuscode == 1" line