Don't convert the database field to a string - just use it as-is:
Count = (subA == null ? 0 : (subA.Count ?? 0))
Regarding the error message... the using
statement disposes your instance of SQL_TA_SCOREBOARDEntities1
, so you need to get your data now, before leaving the method:
return query.ToList();