Merge branch 'master' of https://git.nejcraft.cz/Nejcraft/NejCommon.NET
This commit is contained in:
commit
37477b4df0
|
|
@ -104,7 +104,7 @@ public static class Extensions
|
||||||
public static IEnumerable<TType> ApplyDateTimeFrameE<TType>(this ICollection<TType> query, Func<TType, DateTime> dateAcessor, DateTimeFrame frame) => query.Where(e => dateAcessor(e) >= frame.FromDate && dateAcessor(e) <= frame.ToDate);
|
public static IEnumerable<TType> ApplyDateTimeFrameE<TType>(this ICollection<TType> query, Func<TType, DateTime> dateAcessor, DateTimeFrame frame) => query.Where(e => dateAcessor(e) >= frame.FromDate && dateAcessor(e) <= frame.ToDate);
|
||||||
|
|
||||||
[Projectable]
|
[Projectable]
|
||||||
public static DateOnly ToDateOnly(this DateTime date) => new DateOnly(date.Year, date.Month, date.Day);
|
public static DateOnly ToDateOnly(this DateTime date) => DateOnly.FromDateTime(date);
|
||||||
[Projectable]
|
[Projectable]
|
||||||
public static DateTime ToDateTime(this DateOnly date) => new DateTime(date.Year, date.Month, date.Day);
|
public static DateTime ToDateTime(this DateOnly date) => new DateTime(date.Year, date.Month, date.Day);
|
||||||
[Projectable]
|
[Projectable]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user