Closed lastreload closed 6 years ago
Hello @lastreload ,
Do you think you could provide us a test project with this issue?
It will make easier/faster for my developer to getting started for investigating it.
We now always ask for a project since we found out that most issues are missing some essential information or are resolved by the requestor when creating it
(Even if the issue seem very easy to reproduce, by getting a test project, it allow us to give a faster support and better experience for the support of all our free libraries)
Best Regards,
Jonathan
Performance Libraries
context.BulkInsert(list, options => options.BatchSize = 1000);
Entity Framework Extensions • Bulk Operations • Dapper Plus • LinqToSql Plus
Runtime Evaluation
Eval.Execute("x + y", new {x = 1, y = 2}); // return 3
C# Eval Function • SQL Eval Function
I hope this is the right way. Tanks for support.
Thank for the project,
One of my developers will be assigned to this issue.
Best Regards,
Jonathan
I don't know why this code fail, but I understand that my code is useless. I don't need generate filters dinamically, your framework support interfaces so i can simply do something like this:
modelBuilder.Filter("UnitCnfg_Filter",
(IConfiguration c, string agency, string customer, string language) => (c.Agency.Code == Agency)
&& (c.Customer.Code == Customer)
&& (c.Language.Code == Language),(IssueContext ctx)=>ctx.Agency, (IssueContext ctx) =>ctx.Customer, (IssueContext ctx) =>ctx.Language
);
and it works great!
Oh that's even better ;)
Soon, we will have all our documentation online on .NET Fiddle (https://dotnetfiddle.net/), so it will be easier to getting started and find some online example. We are currently adding the support for Entity Framework and hope to have something available very soon.
Best Regards,
Jonathan
using version:3.0.1 I'm trying to dinamically creating some filters.
This static filter works:
But creating a generic method that configure the same filter doesn't work:
...
the filter seems to be added correctly, but when a query is executed it throw an exception:
Stack trace: