The reason we didn't add a code fix for this is because in most cases the correct fix is more involved than simply adding .AsEnumerable() (eg. encoding the filter into the query expression rather than using a delegate). Using .AsEnumerable() is really only a workaround for the cases where it's desirable to fetch all the records and perform the operation locally.
The reason we didn't add a code fix for this is because in most cases the correct fix is more involved than simply adding
.AsEnumerable()
(eg. encoding the filter into the query expression rather than using a delegate). Using.AsEnumerable()
is really only a workaround for the cases where it's desirable to fetch all the records and perform the operation locally.