<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SharePoint Development Best Practices (Summary)</title>
	<atom:link href="http://blog.robgarrett.com/2009/02/20/sharepoint-development-best-practices-summary/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.robgarrett.com/2009/02/20/sharepoint-development-best-practices-summary/</link>
	<description>Software and Technology Tid-bits</description>
	<lastBuildDate>Mon, 09 Jan 2012 22:06:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Ariel Lavoy</title>
		<link>http://blog.robgarrett.com/2009/02/20/sharepoint-development-best-practices-summary/#comment-1046</link>
		<dc:creator><![CDATA[Ariel Lavoy]]></dc:creator>
		<pubDate>Thu, 02 Dec 2010 20:16:49 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/20/sharepoint-development-best-practices-summary.aspx#comment-1046</guid>
		<description><![CDATA[I thought it was going to be some boring old post, but it really compensated for my time.Thank you so much]]></description>
		<content:encoded><![CDATA[<p>I thought it was going to be some boring old post, but it really compensated for my time.Thank you so much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishal Jadhao</title>
		<link>http://blog.robgarrett.com/2009/02/20/sharepoint-development-best-practices-summary/#comment-1012</link>
		<dc:creator><![CDATA[Vishal Jadhao]]></dc:creator>
		<pubDate>Tue, 07 Sep 2010 06:13:55 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/20/sharepoint-development-best-practices-summary.aspx#comment-1012</guid>
		<description><![CDATA[after debugging this optimized function,

public static SPListItem AddItem(this SPList list)
{
const string EmptyQuery = “0″;
SPQuery q = new SPQuery {Query = EmptyQuery};
return list.GetItems(q).Add();
}


I found that &quot;return list.GetItems(q)&quot; returns all the items from list so its not optimized.

Does any body have better approach?]]></description>
		<content:encoded><![CDATA[<p>after debugging this optimized function,</p>
<p>public static SPListItem AddItem(this SPList list)<br />
{<br />
const string EmptyQuery = “0″;<br />
SPQuery q = new SPQuery {Query = EmptyQuery};<br />
return list.GetItems(q).Add();<br />
}</p>
<p>I found that &#8220;return list.GetItems(q)&#8221; returns all the items from list so its not optimized.</p>
<p>Does any body have better approach?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robgarrett</title>
		<link>http://blog.robgarrett.com/2009/02/20/sharepoint-development-best-practices-summary/#comment-826</link>
		<dc:creator><![CDATA[robgarrett]]></dc:creator>
		<pubDate>Sat, 21 Mar 2009 16:10:24 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/20/sharepoint-development-best-practices-summary.aspx#comment-826</guid>
		<description><![CDATA[SPList.AddItem - I have to admit, I found this in the referenced article and I could not find it either, so I use the optimized function in my next post.]]></description>
		<content:encoded><![CDATA[<p>SPList.AddItem &#8211; I have to admit, I found this in the referenced article and I could not find it either, so I use the optimized function in my next post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denis</title>
		<link>http://blog.robgarrett.com/2009/02/20/sharepoint-development-best-practices-summary/#comment-825</link>
		<dc:creator><![CDATA[Denis]]></dc:creator>
		<pubDate>Wed, 18 Mar 2009 18:56:05 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/20/sharepoint-development-best-practices-summary.aspx#comment-825</guid>
		<description><![CDATA[You said, &quot;Instead of calling SPList.Items.Add, simply use SPList.AddItem.&quot;

But I don&#039;t see an AddItem method of SPList. Am I missing something?

Anyway, as a work-around I got your code here:
http://robgarrett.com/cs/blogs/software/archive/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list.aspx

...and made an extension method out of it.
----------
    public static SPListItem AddItem(this SPList list)
    {
        const string EmptyQuery = &quot;0&quot;;
        SPQuery q = new SPQuery {Query = EmptyQuery};
        return list.GetItems(q).Add();
    }
----------

Now SPList has an AddItem method!!]]></description>
		<content:encoded><![CDATA[<p>You said, &#8220;Instead of calling SPList.Items.Add, simply use SPList.AddItem.&#8221;</p>
<p>But I don&#8217;t see an AddItem method of SPList. Am I missing something?</p>
<p>Anyway, as a work-around I got your code here:<br />
<a href="http://robgarrett.com/cs/blogs/software/archive/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list.aspx" rel="nofollow">http://robgarrett.com/cs/blogs/software/archive/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list.aspx</a></p>
<p>&#8230;and made an extension method out of it.<br />
&#8212;&#8212;&#8212;-<br />
    public static SPListItem AddItem(this SPList list)<br />
    {<br />
        const string EmptyQuery = &#8220;0&#8243;;<br />
        SPQuery q = new SPQuery {Query = EmptyQuery};<br />
        return list.GetItems(q).Add();<br />
    }<br />
&#8212;&#8212;&#8212;-</p>
<p>Now SPList has an AddItem method!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: http://</title>
		<link>http://blog.robgarrett.com/2009/02/20/sharepoint-development-best-practices-summary/#comment-824</link>
		<dc:creator><![CDATA[http://]]></dc:creator>
		<pubDate>Mon, 02 Mar 2009 08:43:18 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/20/sharepoint-development-best-practices-summary.aspx#comment-824</guid>
		<description><![CDATA[good summary of some important aspects. Definately helps me in my research for the ultimate BPforSP]]></description>
		<content:encoded><![CDATA[<p>good summary of some important aspects. Definately helps me in my research for the ultimate BPforSP</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robgarrett</title>
		<link>http://blog.robgarrett.com/2009/02/20/sharepoint-development-best-practices-summary/#comment-823</link>
		<dc:creator><![CDATA[robgarrett]]></dc:creator>
		<pubDate>Wed, 25 Feb 2009 16:56:33 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/20/sharepoint-development-best-practices-summary.aspx#comment-823</guid>
		<description><![CDATA[Thanks Miriam, welcome to my blog.]]></description>
		<content:encoded><![CDATA[<p>Thanks Miriam, welcome to my blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas Grabner</title>
		<link>http://blog.robgarrett.com/2009/02/20/sharepoint-development-best-practices-summary/#comment-822</link>
		<dc:creator><![CDATA[Andreas Grabner]]></dc:creator>
		<pubDate>Mon, 23 Feb 2009 21:34:26 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/20/sharepoint-development-best-practices-summary.aspx#comment-822</guid>
		<description><![CDATA[Hi

Check out my blog series about SharePoint where I cover some of your raised topics @ http://blog.dynatrace.com/tag/sharepoint-net/
One entry focuses on the memory issue that you raised: http://blog.dynatrace.com/2009/02/12/sharepoint-identifying-memory-problems-introduced-by-custom-code/

I hope this helps]]></description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Check out my blog series about SharePoint where I cover some of your raised topics @ <a href="http://blog.dynatrace.com/tag/sharepoint-net/" rel="nofollow">http://blog.dynatrace.com/tag/sharepoint-net/</a><br />
One entry focuses on the memory issue that you raised: <a href="http://blog.dynatrace.com/2009/02/12/sharepoint-identifying-memory-problems-introduced-by-custom-code/" rel="nofollow">http://blog.dynatrace.com/2009/02/12/sharepoint-identifying-memory-problems-introduced-by-custom-code/</a></p>
<p>I hope this helps</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miriam</title>
		<link>http://blog.robgarrett.com/2009/02/20/sharepoint-development-best-practices-summary/#comment-821</link>
		<dc:creator><![CDATA[Miriam]]></dc:creator>
		<pubDate>Mon, 23 Feb 2009 13:09:23 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/20/sharepoint-development-best-practices-summary.aspx#comment-821</guid>
		<description><![CDATA[I recently came across your blog and have been reading along. I thought I would

leave my first comment. I don&#039;t know what to say except that I have enjoyed

reading. Nice blog. I will keep visiting this blog very often.

Miriam

http://www.craigslistguide.info]]></description>
		<content:encoded><![CDATA[<p>I recently came across your blog and have been reading along. I thought I would</p>
<p>leave my first comment. I don&#8217;t know what to say except that I have enjoyed</p>
<p>reading. Nice blog. I will keep visiting this blog very often.</p>
<p>Miriam</p>
<p><a href="http://www.craigslistguide.info" rel="nofollow">http://www.craigslistguide.info</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

