predicate
Serialising predicates over wcf
I have a WCF service that exposes a bunch of methods that return business objects. Under its hood it has a nice repository layer that uses interface methods like this:[详细]
2023-01-28 18:16 分类:问答compute in prolog
I know in prolog we ask for is that true or false , can we also do compu开发者_Python百科te for example average and how the predicate look like?Of course you can compute the average of a list of numbe[详细]
2023-01-27 09:03 分类:问答How can I pass a Predicate<T> to the Where() method in Linq to SQL?
I have the following model: +--------+ Folder | +--------+ 1 * +----------++---------+ WorkItem |---------| Project |[详细]
2023-01-25 03:47 分类:问答EntityFramework Casting issues
I am building my query using PredicateBuilder from LinqKit. it is great and does exactly what i am looking for.[详细]
2023-01-22 01:52 分类:问答How to chain method overloads that accept Func<> delegates ? (C#)
I have a method with two overloads, as follows: bool Evaluate(Func<bool> condition) { // Some logic[详细]
2023-01-21 17:39 分类:问答Dynamic LINQ help for sorting problem
I have a simple IEnumerable collection of Order objects. I want to write a generic sort function that accepts the collection and a sortkey that corresponds to a property on an Order object. I don\'t w[详细]
2023-01-20 21:21 分类:问答Dynamically creating an Expression calling method EntityFunctions.DiffDays
I am trying to create the following Where clause expression dynamically: context.Cars. Where(c => EntityFunctions.DiffDays(c.Created, c.Created) == null).[详细]
2023-01-20 09:41 分类:问答Expression.Call - Calling linq extension: FirstOrDefault, Where
I am trying to create the fo开发者_开发问答llowing dynamically, however I am having problems calling the extension method FirstOrDefault:[详细]
2023-01-18 23:19 分类:问答Declaring Func<in T, out Result> dynamically
Consider this: var propertyinfo = typeof(Customer).GetProperty(sortExpressionStr); Type orderType = propertyinfo.PropertyType;[详细]
2023-01-16 17:09 分类:问答Need help trying to EagerLoad some data in EntityFramework
I\'m trying to do some eager loading on an EF Entity. so, if the entity is called Orders .. then I guess i would do the following...[详细]
2023-01-16 04:52 分类:问答