This PR included DateOnly and TimeOnly types as non-standard EDM primitive types in the ConvertNonStandardPrimitives method. This is to be able to convert these types to their standard EDM primitive types.
Given the following model:
public class DateOnyTimeOnlyModel
{
public int Id { get; set; }
public DateOnly Birthday { get; set; }
public DateOnly EndDay { get; set; }
public TimeOnly CreatedTime { get; set; }
public TimeOnly? EndTime { get; set; }
}
With DateOnly and TimeOnly types added, now supports the following:
$apply=groupby((EndDay))
$apply=groupby((CreatedTime))
$apply=groupby((EndTime),aggregate(Birthday with min as MinBirthday))
?$apply=groupby((EndDay),aggregate(Id with max as MaxId))&$orderby=PublishDay
Checklist (Uncheck if it is not completed)
[x] Test cases added
[x] Build and test with one-click build and test script passed
Additional work necessary
If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.
Issues
This pull request fixes #1327.
Description
This PR included
DateOnly
andTimeOnly
types as non-standard EDM primitive types in theConvertNonStandardPrimitives
method. This is to be able to convert these types to their standard EDM primitive types.Given the following model:
With
DateOnly
andTimeOnly
types added, now supports the following:$apply=groupby((EndDay))
$apply=groupby((CreatedTime))
$apply=groupby((EndTime),aggregate(Birthday with min as MinBirthday))
?$apply=groupby((EndDay),aggregate(Id with max as MaxId))&$orderby=PublishDay
Checklist (Uncheck if it is not completed)
Additional work necessary
If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.