F
Frans Bouma [C# MVP]
Andrus said:Frans,
MS Dynamic Linq Library usage contains of samples about this. First
sample in its doc looks like:
var query =
db.Customers.
Where("City = @0 and Orders.Count >= @1", "London", 10).
OrderBy("CompanyName").
Select("new(CompanyName as Name, Phone)");
You can replace string constans with variables determined at runtime.
ah, back to string-based programming... why do we need Linq with
compile time checked stuff when we have string based queries!
No. Never.
This is too hard to code.
No it's quite easy, give it a try
FB
--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------