This question is locked. New answers and comments are not allowed.
Hello My friends.
I'm using open access ORM in my project and have a trouble problem with linq navigation,
this is my query :
but, when i'm using
to retrieve result count, i got a error message :
ithink the problem is in inner query(
what can i do?
I'm using open access ORM in my project and have a trouble problem with linq navigation,
this is my query :
var sabet = context.tbl1.Where(i => i.JalaseMSID == JalaseMSID.ToInt() &&
(i.tblAezayeJalases ==
null
|| (i.tbl2 !=
null
&&
i.tblAezayeJalases.Any(j => j.tblJalaseID == jalaseID))));
but, when i'm using
int
c = sabet.Count();
Telerik.OpenAccess.RT.sql.SQLException: Subquery returned more than 1 value.
This is not permitted when the subquery follows =, !=, <, <= , >, >= or
when the subquery is used as an expression.
i.tblAezayeJalases.Any
) but it return boolean value and no matter how many records being returned, what can i do?