You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LuObjectConverterDescriptorQueryable.cs 722B

123456789101112131415161718
  1. using System;
  2. using System.Linq;
  3. using System.Linq.Expressions;
  4. using Microsoft.EntityFrameworkCore;
  5. namespace Luticate2.Auth.Utils.Business.Converters.ObjectConverterDescriptor
  6. {
  7. public class LuObjectConverterDescriptorQueryable : LuObjectConverterDescriptor
  8. {
  9. public LuObjectConverterDescriptorQueryable()
  10. {
  11. AddDynamicMethodConverterTemplate(
  12. (Expression<Func<DbSet<object>, Expression<Func<object, bool>>, bool>>)((source, filter) => source.Any(filter)));
  13. AddDynamicMethodConverterTemplate(
  14. (Expression<Func<DbSet<object>, Expression<Func<object, bool>>, IQueryable<object>>>)((source, filter) => source.Where(filter)));
  15. }
  16. }
  17. }