• Two choices I can think of quickly, 1) figure out how to keep EF from converting the strings from varchar to nvarchar or 2) modify your table so that ObjId is nvarchar instead of varchar.