List Info

Thread: How can I populate MembershipUserCollection instead of IList?




How can I populate MembershipUserCollection instead of IList?
country flaguser name
United States
2008-03-20 12:25:22
I'm trying to implement the GetAllUser method in the
Membership Provider and
I have to return a MembershipUserCollection populated with
MembershipUser
objects. Is this possible? I'm pretty much looking for
(which doesn't exist
of course):

public T QueryForCollection<T, U>

where T would be MembershipUserCollection and U would be
MembershipUser. Is
there any way to achieve something like this? My only option
I can think of
is loading the IList with MembershipUsers, then loop thru
the IList and
populate a MembershipUserCollection one by one in my code,
but that's really
redundant. Any ideas?
-- 
View this message in context: http
://www.nabble.com/How-can-I-populate-MembershipUserCollectio
n-instead-of-IList--tp16184430p16184430.html
Sent from the iBATIS - User - Cs mailing list archive at
Nabble.com.


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )