ZEXSM / OData.QueryBuilder

OData.QueryBuilder - library for creating complex OData queries (OData version 4.01) based on data models with linq syntax.
MIT License
72 stars 31 forks source link

Error on IODataExpandResource.For in Expand #78

Closed szymonjagiello86 closed 2 years ago

szymonjagiello86 commented 2 years ago

Hi, we are getting "System.IndexOutOfRangeException: Index was outside the bounds of the array" when we use the For method without additional operations:

.Expand(e => e.For(ee => ee.childEntity).Filter(eee => eee.Id)) //works

.Expand(e => e.For(ee => ee.childEntity)) //throws exception

ZEXSM commented 2 years ago

Hi! I am currently working on removing this exception, but for now, for a simple Expand, use

.Expand (e => e.childEntity)

szymonjagiello86 commented 2 years ago

Hi! I confirm that the bug has been fixed. Thank you for support!

Br, Szymon