Skip to content

Releases: PoweredSoft/DynamicQuery

CaseInsensitive Support

27 Apr 17:20
Compare
Choose a tag to compare

Added CaseInsensitive Support to SimpleFilter this simplifies the search of string fields in queryables that are not being a case insensitive driver.

new SimpleFilter
{
    Path = "Name",
    Type = FilterType.EndsWith,
    Value = "Cables",
    CaseInsensitive = true
}

Updated Dependencies

31 Jul 23:30
Compare
Choose a tag to compare

Updated dependencies to DynamicLinq 1.1.11.

QueryInterceptorProvider

13 Dec 00:04
a8468e3
Compare
Choose a tag to compare

You can now return interceptors using a provider.

public class QueryProviderTests
    {
        private class FakeInterceptor : IQueryInterceptor
        {

        }

        private class QueryInterceptorProvider : IQueryInterceptorProvider
        {
            public IEnumerable<IQueryInterceptor> GetInterceptors<TSource, TResult>(IQueryCriteria queryCriteria, IQueryable<TSource> queryable)
            {
                yield return new FakeInterceptor();
                yield return new FakeInterceptor();
            }
        }

        [Fact]
        public void Simple()
        {
            MockContextFactory.SeedAndTestContextFor("QueryProviderTests_Simple", TestSeeders.SimpleSeedScenario, ctx =>
            {
                // criteria
                var criteria = new QueryCriteria();
                var queryHandler = new QueryHandler(new List<IQueryInterceptorProvider>{
                    new QueryInterceptorProvider()
                });
                queryHandler.AddInterceptor(new FakeInterceptor());
                var interceptors = queryHandler.ResolveInterceptors<Order, Order>(criteria, ctx.Orders);
                Assert.Equal(1, interceptors.Count);
                Assert.True(interceptors[0].GetType() == typeof(FakeInterceptor));
            });
        }
    }

Version 2! is now generics! :D

22 Mar 21:46
Compare
Choose a tag to compare

Changed structure of IQueryExecutionResult its now IQueryExecutionResult<T>.

Since its now generics groups will be in their own property, the added properties are:
groups, subGroups, hasSubGroups.

image

Updated to use PoweredSoft.Data updated services for async operations

14 Feb 05:10
Compare
Choose a tag to compare
1.0.117

will be nuggetting using alm from now on.

Async handler implementation

07 Dec 05:27
Compare
Choose a tag to compare

You can now use IQueryHandlerAsync to execute the query in await/async context 👍

New Async

[HttpPost]
public async Task<IQueryExecutionResult> Read(
    [FromServices]YourContext context, 
    [FromServices]IQueryHandlerAsync handler,
    [FromBody]IQueryCriteria criteria)
{
    IQueryable<OfSomething> query = context.Somethings;
    var result = await handler.ExecuteAsync(query, criteria);
    return result;
}

Better Dependency Injection Support

23 Nov 07:45
Compare
Choose a tag to compare

Added some extension methods to start faster :) with DI.

Added some extension methods and a web package for easier start in asp.net core mvc

18 Nov 11:57
063a1ca
Compare
Choose a tag to compare

Added some extension methods and a web package for easier start in asp.net core mvc

Fixed nested group results.

16 Nov 01:45
Compare
Choose a tag to compare

I forgot to nest groups in the result.

Nuget depedencies fixed

13 Nov 04:14
Compare
Choose a tag to compare

Just fixed dependencies to have the right enumerations when installing nuget package.