1
I have a table that has a field PA that is string, it stores a 10 digit number and I can’t change the type of it because it references another table.
I’m trying to add this field like this:
Int32 somaBpaC = modelOff.bpacs.Sum(p => p.pa);
I get an expected error that cannot add the field pa that is string.
Is there any way to convert the field to int at the time of summation?
modelOff.bpacs is your Entity Framework and pa is a field that is a text, but that holds numbers?
– novic