I’m trying to do a Dynamic LINQ like in the ScotGu’s blog
var select = db.San_Imovel.Where("Imovel_Id = @0", 123).Select("new(Imovel_Id)");
but I get the error
the best overloaded method match for ‘.Where(string, System.Data.Objects.OBjectsParameter[])’ has some invalid arguments
Are you using .net 3.5?
Note that only 3.5+ supports that syntax.
Use
String.Format: