<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Gideon Dsouza - sql-compact-toolbox</title><link>http://www.gideondsouza.com:80/Tags/sql-compact-toolbox</link><description>Gideon Dsouza - sql-compact-toolbox</description><item><title>Adding entity framework model for SQL Server Compact 4 Database in Visual Studio 2010</title><link>http://www.gideondsouza.com:80/blog/adding-entity-framework-model-for-sql-server-compact-4-database-in-visual-studio-2010</link><description>&lt;p&gt;This is yet another thing I forgot even though I’ve done it on a project before.&lt;/p&gt;

&lt;p&gt;I had a .edmx added for SQL CE4 DB, but when I went to “Update Model from Database” in Visual Studio I got :&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;an exception of type Microsoft.VSDesigner.Data.Local.ConnectionString ConverterException occurred&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;After some &lt;a href="http://stackoverflow.com/questions/5645402/setup-ef4-data-source-for-sql-compact-4"&gt;research&lt;/a&gt; I re-learned, Visual Studio Service Pack 1 supports the creation of an EF model only for &lt;strong&gt;web projects&lt;/strong&gt;! My entity model in the project had not been created by Visual Studio but by &lt;a href="http://sqlcetoolbox.codeplex.com/"&gt;SQL Compact Toolbox.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So head over to install &lt;a href="http://sqlcetoolbox.codeplex.com/"&gt;SQL Compact Toolbox&lt;/a&gt; by the Great &lt;a href="http://erikej.blogspot.com/"&gt;ErikEJ&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src="http://www.gideondsouza.com/Media/Default/BlogPost/blog/toolbx.png" alt="enter image description here"&gt;&lt;/p&gt;

&lt;p&gt;It supports EF models well enough AFAIK, to edit them from Visual Studio, however, if you make an update in the database, you’ll just need to delete your .edmx and recreate the model&lt;/p&gt;
</description><pubDate>Sun, 23 Oct 2011 09:07:27 GMT</pubDate><guid isPermaLink="true">http://www.gideondsouza.com:80/blog/adding-entity-framework-model-for-sql-server-compact-4-database-in-visual-studio-2010</guid></item></channel></rss>