fixqup queryable date filter
This commit is contained in:
parent
229525ab81
commit
b86c277885
|
|
@ -93,7 +93,7 @@ public static class Extensions
|
|||
}
|
||||
|
||||
[Projectable]
|
||||
public static IQueryable<TType> ApplyDateOnlyFrameQ<TType>(this IQueryable<TType> query, Func<TType, DateOnly> dateAcessor, DateOnlyFrame frame) => query.Where(e => dateAcessor(e) >= frame.fromDate && dateAcessor(e) <= frame.toDate);
|
||||
public static IQueryable<TType> ApplyDateOnlyFrameQ<TType>(this IQueryable<TType> query, string datePropery, DateOnlyFrame frame) => query.Where(e => EF.Property<DateOnly>(e, datePropery) >= frame.fromDate && EF.Property<DateOnly>(e, datePropery) <= frame.toDate);
|
||||
[Projectable]
|
||||
public static IEnumerable<TType> ApplyDateOnlyFrameE<TType>(this ICollection<TType> query, Func<TType, DateOnly> dateAcessor, DateOnlyFrame frame) => query.Where(e => dateAcessor(e) >= frame.fromDate && dateAcessor(e) <= frame.toDate);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user