Open davhdavh opened 2 years ago
@davhdavh Which version are you using?
If you are using 8.0.7, please set the NullPropagation=false, If you are using 8.0.8, It should be improved.
Looking forward to your feedback.
Was on 8.0.7, checked on 8.0.8 where it is exactly the same.
NullPropagation = false
does help, but it still does unnecessary type casts: ($$it .As TestOData.ResourceDto).Name
, or (System.Nullable``1[System.Int16])($$it .As TestOData.ResourceDto).Version
. Also Version
is not even nullable in my model
The expression tree for a select query does silly type checks:
$$it .As TestOData.Res
is ALWAYS true, and the type of the value is always same in SelectSome. Therefore the entire inner access could be done as: