I want to build dynamic Linq. Following is my code which works fine for one date. But use开发者_JS百科r can select many dates from calendar. And I need to make Linq for all those selected dates.
Why does: IEnumerable<MyEntity> MyFunction(string sql, object [] params) { // EG: // \"SELECT * FROM MyTable WHERE MyField0 = @0 AND MyField1 = @1\"
I am trying to mimick the left outer join here but using dynamic linq extension methods. What i have:
I write a expression that will test if a property(enum) of a object have, or have not some flags set.
I use a dynamic filter, that filters a collection using object properties, operators and values. Now, if the property is a string, the operator is \"contains\" and the value is \"word\", the filtered
I would like to use enumerations in my dynamic LINQ queries. Is it possible, and if, how? Consider the code bellow:
How can I run a dynamic LINQ query on a collection of a base type (like the IPerson interface) but access implementation specific properties (like Age).
I figured out how to do a predicate from a string supplied by a client based on Dynamic Linq (this is wrapped in a Specification object):
I have two similar methods that take a criteria object (dumb object with a list of properties), call a \"CreateExpression\" method on that criteria object, and then use the returned expression to filt
I use the following code to fill the Table1 dictionary with the information found within the LINQ query.