diff --git a/test/Stove.Demo.ConsoleApp/SomeDomainService.cs b/test/Stove.Demo.ConsoleApp/SomeDomainService.cs index c63be4c..2fff223 100644 --- a/test/Stove.Demo.ConsoleApp/SomeDomainService.cs +++ b/test/Stove.Demo.ConsoleApp/SomeDomainService.cs @@ -3,6 +3,8 @@ using Autofac.Extras.IocManager; +using LinqKit; + using MassTransit; using Stove.BackgroundJobs; @@ -82,11 +84,19 @@ public void DoSomeStuff() #region DAPPER + var list = new List + { + "elma", "armut" + }; + + ExpressionStarter predicate = PredicateBuilder.New(); + predicate.And(x => x.Name == "Kuş"); + IEnumerable birdsSet = _animalDapperRepository.GetSet(new { Name = "Kuş" }, 0, 10, "Id"); IEnumerable personFromDapper = _personDapperRepository.GetList(new { Name = "Oğuzhan" }); - IEnumerable birdsFromExpression = _animalDapperRepository.GetSet(x => x.Name == "Kuş", 0, 10, "Id"); + IEnumerable birdsFromExpression = _animalDapperRepository.GetSet(predicate, 0, 10, "Id"); IEnumerable birdsPagedFromExpression = _animalDapperRepository.GetListPaged(x => x.Name == "Kuş", 0, 10, "Name"); diff --git a/test/Stove.Demo.ConsoleApp/project.json b/test/Stove.Demo.ConsoleApp/project.json index 96e68dd..8a65004 100644 --- a/test/Stove.Demo.ConsoleApp/project.json +++ b/test/Stove.Demo.ConsoleApp/project.json @@ -13,6 +13,7 @@ "FluentAssemblyScanner": "1.0.5", "Hangfire.Core": "1.6.8", "Hangfire.SqlServer": "1.6.8", + "LinqKit": "1.1.8", "MassTransit": "3.5.5", "Newtonsoft.Json": "9.0.1", "Owin": "1.0",