Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

How can I query an ObjectSet<user> for number of users?

I have an ObjectSet to contain the users.  How do I query that to find the count or length?

Thanks,
newbieweb
ASKER CERTIFIED SOLUTION
Avatar of VincentSG
VincentSG
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of curiouswebster

ASKER

ObjectSet<user> users = entities.users;
users.Count();

this does not work.

Here's the definition:
users.Count<TSource>;

What is TSource?
Sorry, that worked. I did not have the left side with an int variable.

Thanks.