Bukimedia / PrestaSharp

CSharp .Net client library for the PrestaShop API via web service
GNU General Public License v3.0
155 stars 152 forks source link

Erro in GetIdsByFilter GenericFactory #292

Closed GiorgioConte closed 6 years ago

GiorgioConte commented 6 years ago

Hi, when i call the function OrderFactory.GetIdsByFilter, i have this error:

Impossibile eseguire il cast di oggetti di tipo 'WhereSelectListIterator2[Bukimedia.PrestaSharp.Entities.order,System.Nullable1[System.Int64]]' sul tipo 'System.Collections.Generic.List`1[System.Int64]'. in GetIdsByFilter on GenericFactory line 120 (return (List)(aux.Select(t => t.id).ToList())) Can u help me to solve?

nico159 commented 6 years ago

Had the same error, fixed with proposed pull request https://github.com/Bukimedia/PrestaSharp/pull/294

GiorgioConte commented 6 years ago

I've resolved with: return (from t in aux select t.id).Cast().ToList();

juanchog commented 6 years ago

Fixed with commit https://github.com/Bukimedia/PrestaSharp/commit/023549c2b5a6f4726d0e41c0b24fb652209e51c1

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.