New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UseAsDataSource doesn't support expand and select in OData projections #1953
Comments
I tried the MyGet build (5.3.0-alpha-01286) and it still fails with UseAsDataSource. Exception details:
|
@pculver MyGet is built from master. Those PR-s are not merged into master yet. The code is in the PR's branch. |
@TylerCarlson1 so I'm still inclined to pull in #1923. |
sorry, meant #1916 |
Try the MyGet build. |
This still fails in MyGet (5.3.0-alpha-01291) as well as the unit test in master. For example in ODataQueryTests.cs remove the Ignore attribute from the SupportsExpand unit test and run the test. It will fail as follows: Test Name: SupportsExpand Result StackTrace: at AutoMapperSamples.OData.ODataQueryTests.SupportsExpand() in D:\SOURCE\Other\Automapper\src\AutoMapperSamples.OData\ODataQueryTests.cs:line 389 |
PR welcome. |
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. |
I suspect this is a feature request.
The Automapper OData samples have the tests for select and expand marked as Not supported yet. Is there a plan to expand Automapper to support expand and select when using the UseAsDataSource functionality? Note in my testing, the expand functionality works correctly when using ProjectTo.
Any recommendations to work around this. I would be happy to use ProjectTo but I need the functionality of OnEnumeration and BeforeProjection in my code.
Both my project and the sample code throw a ArgumentException when attempting to use expand that state Argument types do not match.
The text was updated successfully, but these errors were encountered: