Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Closed Issue: SingleResult doesn't work [1217]

$
0
0
```
public class CustomersController : ODataController
{
[Queryable]
public SingleResult<Customer> Get([FromODataUri]int key)
{
return
System.Web.Http.SingleResult.Create(new[] { new Customer { ID = 42 } }.AsQueryable());
}
}
```

throws a 500 with this error message

Unhandled Exception: System.AggregateException: One or more errors occurred. ---
> System.InvalidOperationException: The given model does not contain the type 'S
ystem.Web.Http.SingleResult`1[SingleResult.Customer]'.


This is a regression introduced with this [change](https://aspnetwebstack.codeplex.com/SourceControl/changeset/97b1c8ac2cb50f47df899012e2a156b47759eeb0).

Comments: Verified.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>