LINQKit
LINQKit copied to clipboard
LINQKit is a free set of extensions for LINQ to SQL and Entity Framework power users.
I am using the following code: ``` c# public static Func StatusOffen { get { return d => d.status < 400; } } public void Test() { Expression expr1 =...
Hello... as known in EF Core , you can't just do the following ``` List GetCustomersWithPurchases(Func predicate,Type realType) { Expression _exp = m => predicate(m); return dbContext.Set(realType) // extention to...
Hy I have an error : The given arguments did not match the expected arguments: Object of type 'System.Linq.Expressions.MethodCallExpression3' cannot be converted to type 'System.Linq.Expressions.LambdaExpression' ... var result = await...
just noted the AxExpandable is breaking the tracking behavior this works ``` c# var blog= _context.Blogs.Single(x=>x.Id==1); blog.Name="New Name"; _context.SaveChanges(); //this will return 1 ``` this doesn't works ``` c# var...
I have created an extension method like: ``` cs public static GetRows() { var to_ret = db.TableRows(x=> new TableRowModel( { TableRowId = x.TableRowId, Type = x.Type, Name = x.Name, CreatedAt...
Hi, I see that you insist on SQL Profiling to check the SQL running on the db. But with EF IQueryable I have no need to use a specific tool,...
Using LinqKit.Microsoft.EntityFrameworkCore, Version=1.1.15.0 The following code should leave basePredicate with only "true" and newPredicate with "true and Property = someValue". ``` var basePredicate = PredicateBuilder.New(true); var newPredicate = basePredicate.And(x =>...
If i use follow code , the **condition** has not **Invoke** Method to call ```C# var condition = PredicateBuilder.New(); if (!filter.DeviceTypeId.IsNull()) { condition = condition.And(u => u.DeviceTypeId == filter.DeviceTypeId); }...
Hello I will give a more detailed case as soon as I have enough time, but I came through an issue using PredicateBuilder (which is very handful and should be...
Scott. Nice library. Saved me a ton of time. Even if you didn't start it, thanks for bringing it to GitHub. I just started using this library. I solved my...