You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Microsoft REST API Guidelines recommends camelCased for the names of entity, property, enum and enum values. In our OData WebAPI implement, we use EnableLowerCamelCase to help do the CamelCase conversion for the entity’s property name. But it does NOT work for enum values, so we have to name enum value in camelCase as a workaround like this. This is NOT good from C# coding perspective. Is there a better way to solve this problem?
public enum Level
{
/// <summary>
/// Low constant
/// </summary>
low = 0,
/// <summary>
/// Medium constant
/// </summary>
medium = 1,
/// <summary>
/// High constant
/// </summary>
high = 2
}
The text was updated successfully, but these errors were encountered:
Microsoft REST API Guidelines recommends camelCased for the names of entity, property, enum and enum values. In our OData WebAPI implement, we use EnableLowerCamelCase to help do the CamelCase conversion for the entity’s property name. But it does NOT work for enum values, so we have to name enum value in camelCase as a workaround like this. This is NOT good from C# coding perspective. Is there a better way to solve this problem?
}
The text was updated successfully, but these errors were encountered: