I\'m using the dynamic LINQ library by Scott Guthrie together with Entity Framework and C#.
I have to build my where string into a variable based on several factors
ObjectQuery.Where overload accepts 2 parameters.
string predicate
params ObjectParameter[] parameters
In your first example, Where
builds the query (where clause) using ObjectParameter
parameters (using Name, Type and Value of ObjectParameter
)
In your second example, whatever is passed is treated as final where clause (no internal conversion based on datatype of passed parameters done).