I'm following this "guide" on how to expose Date
(not DateTime
) in your ODataController
However I don't quite get how I should implement the .AsDate()
extension method
public static class PrimitivePropertyConfigurationExtensions
{
public static PrimitivePropertyConfiguration AsDate(this PrimitivePropertyConfiguration property)
{…}
public static PrimitivePropertyConfiguration AsTimeOfDay(this PrimitivePropertyConfiguration property)
{…}
}
What goes in the ...
place?
Am I missing something obvious?
None of the methods on property
seem to make sense.