Release notes for re-motion version 1.13.129

List of Issues

New Features

Details

[RM-4482] Allow StreamedSequenceInfo's ItemExpression's type to be assignable to (rather than equal to) the enumerable item type

Component/s: Data.Linq
Issue Type: New Feature
Resolution: Won't Fix
Status: Closed


Currently, when a QueryModel expects a result type of IQueryable<T> (because the original queryable's Expression type is IQueryable<T>), re-linq based backends must take care to always provide item expressions (e.g., the items returned by the SelectClause) of type T as well. When they provide a type derived from T, an ArgumentTypeException is thrown by StreamedSequenceInfo's ctor (via QueryModel.GetOutputDataInfo()).

Change that to support all types assignable to T in the item expressions.

Even with an assignable item expression, StreamedSequenceInfo.ExecuteQueryModel (and MakeClosedGenericExecuteMethod) should still use T as the result item type.