I have an enum that looks like this:
enum Color : byte
{
Transparent,
White,
Black
}
When I request the values from my Entity I get the results as strings, not integers, example:
{
"Color": "White"
}
Is there any way to make OData return the value instead of the name of the value?
I'm using Microsoft.AspNet.OData v6.1.0, Microsoft.OData.Core v7.2.0, and Microsoft.Odata.Edm v7.2.0.
The target framework is .Net Framework 4.6.1.