123456789101112131415161718 |
- using System;
- using System.Linq;
- using System.Linq.Expressions;
- using Microsoft.EntityFrameworkCore;
-
- namespace Luticate2.Auth.Utils.Business.ObjectConverterDescriptor
- {
- public class LuObjectConverterDescriptorDbSet : LuObjectConverterDescriptor
- {
- public LuObjectConverterDescriptorDbSet()
- {
- AddDynamicMethodConverterTemplate(
- (Expression<Func<DbSet<object>, Expression<Func<object, bool>>, bool>>)((source, filter) => source.Any(filter)));
- AddDynamicMethodConverterTemplate(
- (Expression<Func<DbSet<object>, Expression<Func<object, bool>>, IQueryable<object>>>)((source, filter) => source.Where(filter)));
- }
- }
- }
|