<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sam Beauvois &#187; Reminders</title>
	<atom:link href="http://www.sambeauvois.be/blog/category/reminders/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sambeauvois.be/blog</link>
	<description>general dev, .net and other stuff</description>
	<lastBuildDate>Tue, 31 Jan 2012 13:38:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Chanel 9 &#124; Rx Workshop: Unified Programming Model</title>
		<link>http://www.sambeauvois.be/blog/2011/08/chanel-9-rx-workshop-unified-programming-model/</link>
		<comments>http://www.sambeauvois.be/blog/2011/08/chanel-9-rx-workshop-unified-programming-model/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 14:46:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Quick posts]]></category>
		<category><![CDATA[Reminders]]></category>

		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=912</guid>
		<description><![CDATA[Learn how to wrap existing event sources, including tasks, asynchronous methods, .NET events, etc. in observable sequences.]]></description>
			<content:encoded><![CDATA[<p><iframe style="height:288px;width:512px" src="http://channel9.msdn.com/Series/Rx-Workshop/Rx-Workshop-Unified-Programming-Model/player?w=512&#038;h=288" frameBorder="0" scrolling="no" ></iframe></p>
<p>Learn how to wrap existing event sources, including tasks, asynchronous methods, .NET events, etc. in observable sequences.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sambeauvois.be/blog/2011/08/chanel-9-rx-workshop-unified-programming-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SqlServer : Saving changes is not permitted</title>
		<link>http://www.sambeauvois.be/blog/2010/07/sqlserver-saving-changes-is-not-permitted/</link>
		<comments>http://www.sambeauvois.be/blog/2010/07/sqlserver-saving-changes-is-not-permitted/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 07:22:51 +0000</pubDate>
		<dc:creator>Sam Beauvois</dc:creator>
				<category><![CDATA[Reminders]]></category>
		<category><![CDATA[Sql Server]]></category>

		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=491</guid>
		<description><![CDATA[With SqlServer, when you want to change the structure of a table, you may encounter the following warning message : &#8220;Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can&#8217;t be re-created or enabled the option [...]]]></description>
			<content:encoded><![CDATA[<p>With SqlServer, when you want to change the structure of a table, you may encounter the following warning message :</p>
<blockquote><p>&#8220;Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can&#8217;t be re-created or enabled the option Prevent saving changes that require the table to be re-created.&#8221;</p></blockquote>
<p><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/07/warn1.png"><img class="aligncenter size-full wp-image-492" title="warn1" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/07/warn1.png" alt="warn1" width="456" height="367" /></a></p>
<p>To avoid this warning message, go to the &#8220;tools&#8221; menu, then click &#8220;Options&#8221;</p>
<p><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/07/toolsoptions.png"><img class="aligncenter size-full wp-image-493" title="toolsoptions" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/07/toolsoptions.png" alt="toolsoptions" width="307" height="266" /></a>Click on the &#8220;Designer&#8221; node</p>
<p style="text-align: center;"><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/07/Designers.png"><img class="aligncenter size-full wp-image-494" title="Designers" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/07/Designers.png" alt="Designers" width="386" height="221" /></a></p>
<p>Then  <strong>uncheck </strong>the &#8220;Prevent saving changes that require table re-creation&#8221; checkbox</p>
<p style="text-align: center;"><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/07/uncheck.png"><img class="aligncenter size-full wp-image-495" title="uncheck" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/07/uncheck.png" alt="uncheck" width="386" height="223" /></a><br />
And you are done, the message box will not appears anymore</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sambeauvois.be/blog/2010/07/sqlserver-saving-changes-is-not-permitted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get the parent Folder for a SPListItem</title>
		<link>http://www.sambeauvois.be/blog/2010/02/get-the-parent-folder-for-a-splistitem/</link>
		<comments>http://www.sambeauvois.be/blog/2010/02/get-the-parent-folder-for-a-splistitem/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 18:23:08 +0000</pubDate>
		<dc:creator>Sam Beauvois</dc:creator>
				<category><![CDATA[Extension Methods]]></category>
		<category><![CDATA[Reminders]]></category>
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=203</guid>
		<description><![CDATA[To retrieve the parent folder my extension method public static SPFolder GetParentFolder(this SPListItem spListItem) { if (spListItem == null) return null; SPFile spFile = spListItem.Web.GetFile(spListItem.Url); if (spFile == null) return null; return spFile.ParentFolder; } Use SPFolder parentFolder = sPListItem.GetParentFolder(); if (parentFolder != null) { // do some stuffs.. } public static SPFolder GetParentFolder(this SPListItem spListItem) [...]]]></description>
			<content:encoded><![CDATA[<p>To retrieve the parent folder</p>
<p>my extension method</p>
<pre class="brush: csharp; title: ;">

public static SPFolder GetParentFolder(this SPListItem spListItem)

{

if (spListItem == null)

return null;

SPFile spFile = spListItem.Web.GetFile(spListItem.Url);

if (spFile == null)

return null;

return spFile.ParentFolder;

}
</pre>
<p>Use</p>
<pre class="brush: csharp; title: ;">

SPFolder parentFolder = sPListItem.GetParentFolder();

if (parentFolder != null)

{

// do some stuffs..

}
</pre>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">public static SPFolder GetParentFolder(this SPListItem spListItem)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">{</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">if (spListItem == null)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">return null;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">SPFile spFile = spListItem.Web.GetFile(spListItem.Url);</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">if (spFile == null)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">return null;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">return spFile.ParentFolder;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}[/csharp]</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sambeauvois.be/blog/2010/02/get-the-parent-folder-for-a-splistitem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

