Skip to content
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

Anonymous Projection #8

Closed
RxDave opened this issue Mar 29, 2016 · 0 comments
Closed

Anonymous Projection #8

RxDave opened this issue Mar 29, 2016 · 0 comments

Comments

@RxDave
Copy link
Owner

RxDave commented Mar 29, 2016

Edit: The original description was overcomplicated. Simply provide support for projecting to anonymous types from within a client's query. No options or protocol negotiation is required.

Consider supporting projection of anonymous types in the IQbservable by allowing clients to opt-in (via another option flag?) to it and specify a concrete type for T with matching properties. The client proxy would automatically map an instance of the anonymous type into a new instance of T.

To ensure that mismatches cause errors as soon as possible, if the server proxy detects that an anonymous type is being projected, then as part of the negotiation protocol it serializes a single empty instance of the type and transmits it to the client. The client then validates T against the anonymous type's definition during the client-side negotiation process and fails immediately if there is a mismatch.

RxDave added a commit that referenced this issue May 22, 2016
- Defined a failing SelectAnonymousType test. (Known issue #8)
RxDave added a commit that referenced this issue May 22, 2016
@RxDave RxDave closed this as completed May 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant