<?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>codemonkey.co.za</title>
	<atom:link href="http://codemonkey.co.za/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://codemonkey.co.za</link>
	<description>the monkeys are coming! [no really.. they are!]</description>
	<lastBuildDate>Fri, 21 Nov 2008 20:41:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Monkey Lab 01 &#8211; Postgres &amp; ADO.Net Entity Framework</title>
		<link>http://codemonkey.co.za/?p=26</link>
		<comments>http://codemonkey.co.za/?p=26#comments</comments>
		<pubDate>Sun, 16 Nov 2008 21:01:42 +0000</pubDate>
		<dc:creator>Zaheer</dc:creator>
				<category><![CDATA[Monkey Labs]]></category>
		<category><![CDATA[ADO.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Npgsql]]></category>
		<category><![CDATA[Postgres]]></category>

		<guid isPermaLink="false">http://codemonkey.co.za/?p=26</guid>
		<description><![CDATA[Getting started 
You will need to download the following before you can continue.

 Npgsql2.0.1-bin-ms.net3.5sp1.zip

If you have the Npgsql2.0RTM version then please download the latest version as there is bug in the RTM version.

Visual Studio 2008 Express Edition with SP1

I will assume that you already have a postgres 8.x Server at your disposal.
Instructions

Extract the Npgsql library [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Getting started </strong></p>
<p>You will need to download the following before you can continue.</p>
<ul>
<li> <a title="Npgsql2.0.1-bin-ms.net3.5sp1" href="http://pgfoundry.org/projects/npgsql/" target="_blank"></a><a title="Npgsql2.0.1-bin-ms.net3.5sp1" href="http://pgfoundry.org/frs/download.php/1964/Npgsql2.0.1-bin-ms.net3.5sp1.zip" target="_blank">Npgsql2.0.1-bin-ms.net3.5sp1.zip</a></li>
</ul>
<p style="padding-left: 30px;"><em>If you have the Npgsql2.0RTM version then please download the latest version as there is bug in the RTM version.</em></p>
<ul>
<li><a href="http://www.microsoft.com/express/vcsharp/" target="_blank">Visual Studio 2008 Express Edition with SP1</a></li>
</ul>
<p>I will assume that you already have a postgres 8.x Server at your disposal.<br />
<strong>Instructions</strong></p>
<ul>
<li>Extract the Npgsql library to any location on your pc.</li>
</ul>
<ul>
<li> Locate and Open machine.config</li>
</ul>
<p style="padding-left: 30px;">C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config</p>
<ul>
<li> Find the following element inside the config file <strong>&lt;DbProviderFactories&gt;</strong></li>
</ul>
<ul>
<li> Add the following line below the <strong>&lt;DbProviderFactories&gt;</strong> tag.</li>
</ul>
<p style="padding-left: 30px;"><strong>&lt;add name=&#8221;Npgsql Data Provider&#8221; invariant=&#8221;Npgsql&#8221; description=&#8221;.Net Framework Data Provider for PostgreSQL Server&#8221; type=&#8221;Npgsql.NpgsqlFactory, Npgsql, Version=2.0.1.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7&#8243;/&gt;</strong></p>
<ul>
<li>Locate and Open the Assembly Explorer (GAC), keep this window open.</li>
</ul>
<p style="padding-left: 30px;">C:\WINDOWS\assembly</p>
<ul>
<li>Open up the directory to where your Npgsql.dll is stored.</li>
<li>Now drag-n-drop both the <strong>Npgsql.dll</strong> and the <strong>Mono.Security.dll</strong> into the assembly window.</li>
</ul>
<p style="padding-left: 30px;">You could&#8217;ve also used <strong><span class="userInput">gacutil -I &#8220;C:\[PathToNpgsqlBinDirectory]\Npgsql.dll&#8221;</span></strong></p>
<p>And thats it! You have now successfully prepared your development environment for working with the Entity Framework and postgres Npgsql. In the next monkey lab I&#8217;ll show you how to create .edmx files from your postgres schema&#8217;s.</p>
]]></content:encoded>
			<wfw:commentRss>http://codemonkey.co.za/?feed=rss2&amp;p=26</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
