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

Commented Issue: Nested class is not supported by QueryableAttribute [346]

$
0
0
To repro:

public class Parent
{
public class Nest
{
public string Name { get; set; }
}
]

Put Nest as action return type:
[QueryableAttribute]
public IEnumerable<Nest> Get()

Throw following exception:

System.InvalidOperationException occurred
Message=No EntitySet exists in the EdmModel with EntityClrType 'MvcWebApi.ODataTests.Models.Order+NestClass'.
Source=System.Web.Http.OData
StackTrace:
at System.Web.Http.OData.ODataQueryContext..ctor(IEdmModel model, Type entityClrType) in C:\dd\DevDiv\Offcycle\WPT\WebStackRuntime\runtime\src\System.Web.Http.OData\OData\ODataQueryContext.cs:line 65
InnerException:

Comments: Unable to repro this issue with or without a Key property. This may have been fixed already.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



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