-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
The [email protected] properties are missing.
In the following sample, there are two examples
- Using EnableQuery and ProjectTo, this works
- Using this library, this doesn't work
Sample https://github.com/cheng93/AutoMapper.OData/blob/master/ApiController.cs
http://localhost:5238/odata/categories?$expand=products($count=true)
expected
{
"@odata.context": "http://localhost:5238/odata/$metadata#categories(Products())",
"value": [
{
"CategoryId": 1,
"CategoryName": "CategoryOne",
"[email protected]": 3, <-- visible
"Products": [
{
"ProductId": 1,
"ProductName": "ProductOne"
},
{
"ProductId": 2,
"ProductName": "ProductTwo"
},
{
"ProductId": 3,
"ProductName": "ProductThree"
}
]
},
{
"CategoryId": 2,
"CategoryName": "CategoryTwo",
"[email protected]": 2, <-- visible
"Products": [
{
"ProductId": 4,
"ProductName": "ProductFour"
},
{
"ProductId": 5,
"ProductName": "ProductFive"
}
]
}
]
}actual
{
"@odata.context": "http://localhost:5238/odata/$metadata#categories(Products())",
"value": [
{
"CategoryId": 1,
"CategoryName": "CategoryOne",
"Products": [
{
"ProductId": 1,
"ProductName": "ProductOne"
},
{
"ProductId": 2,
"ProductName": "ProductTwo"
},
{
"ProductId": 3,
"ProductName": "ProductThree"
}
]
},
{
"CategoryId": 2,
"CategoryName": "CategoryTwo",
"Products": [
{
"ProductId": 4,
"ProductName": "ProductFour"
},
{
"ProductId": 5,
"ProductName": "ProductFive"
}
]
}
]
}lenardchristopher
Metadata
Metadata
Assignees
Labels
No labels