Anyone had much luck with this?
The actually mapped linked stuff is fine.
Im struggling with an "Old fashioned SQL" statement using ExecuteQuery()
It wants me to type the return, but i dont know the type, as its a dynamically created query.....
The actually mapped linked stuff is fine.
Im struggling with an "Old fashioned SQL" statement using ExecuteQuery()
Code:
String FieldList = db.ExecuteQuery<String>("select FieldList from Table where SearchId = 15").Single();
String WhereClause = db.ExecuteQuery<String>("select WhereClause from Table where SearchId = 15").Single();
String sql = "select " + FieldList + " from Table2 where " + WhereClause;
var a = db.ExecuteQuery(sql).ToList(); [COLOR="Red"] <--FAILS HERE[/COLOR]
It wants me to type the return, but i dont know the type, as its a dynamically created query.....