Print Page | Close Window

facing error if no record

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=821
Printed Date: 07-Jun-2024 at 8:27am


Topic: facing error if no record
Posted By: amit
Subject: facing error if no record
Date Posted: 30-May-2008 at 2:45am
Hi,
 I have resolved my post " http://www.ideablade.com/forum/forum_posts.asp?TID=820 - 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.
 
 



Replies:
Posted By: kimj
Date 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.



Print Page | Close Window