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.

LuObjectConverterDescriptorDbSet.cs 703B

123456789101112131415161718
  1. using System;
  2. using System.Linq;
  3. using System.Linq.Expressions;
  4. using Microsoft.EntityFrameworkCore;
  5. namespace Luticate2.Auth.Utils.Business.ObjectConverterDescriptor
  6. {
  7. public class LuObjectConverterDescriptorDbSet : LuObjectConverterDescriptor
  8. {
  9. public LuObjectConverterDescriptorDbSet()
  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. }