<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using LINQ with the MOSS UserProfileManager</title>
	<atom:link href="http://blog.hompus.nl/2009/03/03/using_linq_with_the_moss_userprofilemanager/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hompus.nl/2009/03/03/using_linq_with_the_moss_userprofilemanager/</link>
	<description>Because I like to share knowledge</description>
	<lastBuildDate>Tue, 07 Feb 2012 14:57:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Filipe Cavalcante</title>
		<link>http://blog.hompus.nl/2009/03/03/using_linq_with_the_moss_userprofilemanager/comment-page-1/#comment-2</link>
		<dc:creator>Filipe Cavalcante</dc:creator>
		<pubDate>Mon, 29 Jun 2009 08:01:40 +0000</pubDate>
		<guid isPermaLink="false">http://hompus.wordpress.com/2009/03/03/using_linq_with_the_moss_userprofilemanager/#comment-2</guid>
		<description>Hello there!
That is a nice post!
But I have a question. I need to do a search into my UserProfiles to find whom i want, but this in my SSP i have more than 9thousand users sincronized with AD.
how could i make this search into these all users from SSP without crash my connection. lol
see my code (very simple):
UserProfileManager allUsers = new UserProfileManager(context);
List fullSet = new List();
foreach (UserProfile user in allUsers)
{
fullSet.Add(user);
}
return from user in fullSet
where (user[&quot;FirstName&quot;].Value != null) ? user[&quot;FirstName&quot;].Value.ToString().ToLower().Contains(Nome.ToLower()) : user[&quot;AccountName&quot;].Value.ToString().ToLower().Contains(Nome.ToLower())
select user;
Thx anyway!
(sorry about my english... just learning yet! =D)</description>
		<content:encoded><![CDATA[<p>Hello there!<br />
That is a nice post!<br />
But I have a question. I need to do a search into my UserProfiles to find whom i want, but this in my SSP i have more than 9thousand users sincronized with AD.<br />
how could i make this search into these all users from SSP without crash my connection. lol<br />
see my code (very simple):<br />
UserProfileManager allUsers = new UserProfileManager(context);<br />
List fullSet = new List();<br />
foreach (UserProfile user in allUsers)<br />
{<br />
fullSet.Add(user);<br />
}<br />
return from user in fullSet<br />
where (user["FirstName"].Value != null) ? user["FirstName"].Value.ToString().ToLower().Contains(Nome.ToLower()) : user["AccountName"].Value.ToString().ToLower().Contains(Nome.ToLower())<br />
select user;<br />
Thx anyway!<br />
(sorry about my english&#8230; just learning yet! =D)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

