New Posts New Posts RSS Feed: facing error if no record
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

facing error if no record

 Post Reply Post Reply
Author
amit View Drop Down
Newbie
Newbie
Avatar

Joined: 29-May-2008
Location: India
Posts: 2
Post Options Post Options   Quote amit Quote  Post ReplyReply Direct Link To This Post Topic: facing error if no record
    Posted: 30-May-2008 at 2:45am
Hi,
 I have resolved my post "using sub query with PassthruEsqlQuery".
 
But there is another problem. Please consider the following code
 

string str = "some passthrusql";

var query = new PassthruEsqlQuery(typeof(Subaccount), str);

if above query return record(one or more) then its working fine but if not it is throwing an exception, Below are the details.
 
IdeaBlade.EntityModel.v4.EntityServerException: Sequence contains no elements --->  System.InvalidOperationException: Sequence contains no elements.
 
 
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 30-May-2008 at 11:21am
Amit,
 
The good news is that this problem has been fixed in our DevForce EF Beta2 bits; the bad news is that there's no workaround for the problem in DEF Beta1.  
 
Thanks for reporting the problem.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down