Exemplo n.º 1
0
        public async Task <IQueryable> ApplyQuery(IQueryable collection)
        {
            T = collection.GetType().GetGenericArguments()[0];
            ODataOptions.Validate(ODataValidationSettings);

            return(await Task.Run(() => ODataOptions.ApplyTo(collection.AsQueryable())));
        }