Skip to content

Commit fed9c42

Browse files
authored
Correct TimeOnly member names to not be plural (#4869)
also reorder DateOnly static members to appear before instance members - in line with DateTime and DateTimeOffset
1 parent c574492 commit fed9c42

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

entity-framework/core/providers/sql-server/functions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ dateTimeOffset.TimeOfDay | CONVERT(time, @dat
115115
dateTimeOffset.ToUnixTimeSeconds() | DATEDIFF_BIG(second, '1970-01-01T00:00:00.0000000+00:00', @dateTimeOffset) | EF Core 8.0
116116
dateTimeOffset.ToUnixTimeMilliseconds() | DATEDIFF_BIG(millisecond, '1970-01-01T00:00:00.0000000+00:00', @dateTimeOffset) | EF Core 8.0
117117
dateTimeOffset.Year | DATEPART(year, @dateTimeOffset)
118+
DateOnly.FromDateTime(dateTime) | CONVERT(date, @dateTime) | EF Core 8.0
118119
dateOnly.AddDays(value) | DATEADD(day, @value, @dateOnly) | EF Core 8.0
119120
dateOnly.AddMonths(months) | DATEADD(month, @months, @dateOnly) | EF Core 8.0
120121
dateOnly.AddYears(value) | DATEADD(year, @value, @dateOnly) | EF Core 8.0
121122
dateOnly.Day | DATEPART(day, @dateOnly) | EF Core 8.0
122123
dateOnly.DayOfYear | DATEPART(dayofyear, @dateOnly) | EF Core 8.0
123-
DateOnly.FromDateTime(dateTime) | CONVERT(date, @dateTime) | EF Core 8.0
124124
dateOnly.Month | DATEPART(month, @dateOnly) | EF Core 8.0
125125
dateOnly.Year | DATEPART(year, @dateOnly) | EF Core 8.0
126126
EF.Functions.AtTimeZone(dateTime, timeZone) | @dateTime AT TIME ZONE @timeZone | EF Core 7.0
@@ -143,11 +143,11 @@ EF.Functions.SmallDateTimeFromParts(year, month, day, ...) | SMALLDATETIMEFROMP
143143
EF.Functions.TimeFromParts(hour, minute, second, ...) | TIMEFROMPARTS(@hour, @minute, @second, ...)
144144
timeOnly.AddHours(value) | DATEADD(hour, @value, @timeOnly) | EF Core 8.0
145145
timeOnly.AddMinutes(value) | DATEADD(minute, @value, @timeOnly) | EF Core 8.0
146-
timeOnly.Hours | DATEPART(hour, @timeOnly) | EF Core 8.0
146+
timeOnly.Hour | DATEPART(hour, @timeOnly) | EF Core 8.0
147147
timeOnly.IsBetween(start, end) | @timeOnly >= @start AND @timeOnly < @end | EF Core 8.0
148-
timeOnly.Milliseconds | DATEPART(millisecond, @timeOnly) | EF Core 8.0
149-
timeOnly.Minutes | DATEPART(minute, @timeOnly) | EF Core 8.0
150-
timeOnly.Seconds | DATEPART(second, @timeOnly) | EF Core 8.0
148+
timeOnly.Millisecond | DATEPART(millisecond, @timeOnly) | EF Core 8.0
149+
timeOnly.Minute | DATEPART(minute, @timeOnly) | EF Core 8.0
150+
timeOnly.Second | DATEPART(second, @timeOnly) | EF Core 8.0
151151
timeSpan.Hours | DATEPART(hour, @timeSpan)
152152
timeSpan.Milliseconds | DATEPART(millisecond, @timeSpan)
153153
timeSpan.Minutes | DATEPART(minute, @timeSpan)

0 commit comments

Comments
 (0)