This question is locked. New answers and comments are not allowed.
Hi,
when I try to 'for each' on a IQueryResult I get:
InvalidOperaionException: "Persistent class 'Entities.Visit' was specified as candidate, but the ResultSet does not contain any/all of the pk columns."
Telerik.OpenAccess.dll is referenced. Exception throws in the foreach:
IQuery sqlQuery = northwindScope.GetSqlQuery("SELECT * FROM tablename", typeof(classname), "");
IQueryResult result = sqlQuery.Execute();
foreach (classname v in result) yield return v; // InvalidOperaionExcepion thrown
Thanx if You have any idea