UserCollection error in R10

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
haroonbhatti
Ensign (ENS)
Ensign (ENS)
Posts: 1
Joined: Wed Jul 22, 2015 9:50 am

UserCollection error in R10

Post by haroonbhatti » Fri Jul 31, 2015 2:28 am

We used to have this code to get all users from users table based on a criteria in ablecommerce Gold R7

Dim users As UserCollection = UserDataSource.Search(criteria)

Now we have upgraded to GoldR10 and the same code gives error "Type 'UserCollection' is not defined"

Is there any possible resolution or alternative to this issue ?

Thx,
Haroon.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: UserCollection error in R10

Post by mazhar » Fri Jul 31, 2015 2:45 am

We no longer use strongly typed collection classes in Gold, instead of are making use of lists. You can correct your code like this

Code: Select all

Dim users As IList<User> = UserDataSource.Search(criteria)
Also I recommend you to read this post viewtopic.php?f=47&t=17108 which provide details about some other common changes you might want to know if upgrading AC 7 codes to Gold standards.

Post Reply