Count Star

Posts   
 
    
AdamBoyd
User
Posts: 2
Joined: 20-Oct-2005
# Posted on: 20-Oct-2005 16:10:53   

Hi --

I'm wondering if there's anyway to just get a count star from a predicate expression, just to return a scalar off a pred expression vs filling up a collection class and accessing the Count property (it seems much more efficient to just have an integer returned!)

Thanks, -A

AdamBoyd
User
Posts: 2
Joined: 20-Oct-2005
# Posted on: 20-Oct-2005 16:30:29   

AdamBoyd wrote:

Hi --

I'm wondering if there's anyway to just get a count star from a predicate expression, just to return a scalar off a pred expression vs filling up a collection class and accessing the Count property (it seems much more efficient to just have an integer returned!)

Thanks, -A

Hi -- I've figured this out... I'm just using an older version of the generated code that doesn't contain getscalar... that's all....

Thanks, -A