<?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>Edwin M SarmientoSqlMetal &#8211; Edwin M Sarmiento</title>
	<atom:link href="https://www.edwinmsarmiento.com/category/sqlmetal/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.edwinmsarmiento.com</link>
	<description>Intentional Excellence</description>
	<lastBuildDate>Mon, 13 Apr 2026 21:00:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">84283043</site>		<item>
		<title>Using LINQ with SQL Server Compact Edition</title>
		<link>https://www.edwinmsarmiento.com/using-linq-with-sql-server-compact-edition/</link>
		<comments>https://www.edwinmsarmiento.com/using-linq-with-sql-server-compact-edition/#respond</comments>
		<pubDate>Sat, 01 Nov 2008 11:50:00 +0000</pubDate>
		<dc:creator>Edwin M Sarmiento</dc:creator>
				<category><![CDATA[LINQ]]></category>
		<category><![CDATA[SQL Server 2005 Compact Edition]]></category>
		<category><![CDATA[SqlMetal]]></category>
		<guid isPermaLink="false">http://bassplayerdoc.wordpress.com/2008/11/01/using-linq-with-sql-server-compact-edition</guid>

				<description><![CDATA[I was trying to use MS Access with one of the applications I was writing for a non-profit organization but thought about the security of the database file. That being said, I opted to use SQL Server Compact Edition as it is just a small application that requires a database. This would enable the database [&#8230;]]]></description>
					<content:encoded><![CDATA[<p><span style="font-family:arial;">I was trying to use MS Access with one of the applications I was writing for a non-profit organization but thought about the security of the database file. That being said, I opted to use SQL Server Compact Edition as it is just a small application that requires a database. This would enable the database to be embedded with the application and minimize the need to configure a database engine as a service, like how you would do with SQL Server Express. Since I wanted to use LINQ, I was quite surprised when the Design Surface threw an error saying that the data provider for SQL Server Compact was not supported. Good thing there&#8217;s SqlMetal. I use SqlMetal to automate generation of DBML files for multiple SQL Server databases. Eventhough the Design Surface does not support SQL Server Compact, you can simply import the generated DBML file in your Visual Studio project. You can generate the DBML file for the SQL Server Compact database by running the SqlMetal command below:</span></p>
<p><strong><em><span style="font-size:85%;">SqlMetal /dbml:northwind.dbml northwind.sdf</span></em></strong></p>
<p><span style="font-family:arial;">Run the Windows SDK tool &lt;<strong><span style="font-size:85%;">drive&gt;:Program FilesMicrosoft Visual Studio 9.0VCSqlMetal.exe</span></strong> against your generated sdf file. Make sure you navigate to the folder containing the SDF file, typically the Visual Studio project folder. You can also generate the <strong>.vb</strong> or <strong>.cs</strong> code depending on your preference</span></p>
<p><span style="font-family:Arial;">Check out this <a href="http://blogs.msdn.com/sqlservercompact/archive/2007/08/21/linq-with-sql-server-compact-a-ka-dlinq-over-sql-ce.aspx">blog</a> post from the SQL Server Compact Team on using LINQ with SQL Server Compact</span></p>
<div class="blogger-post-footer"><img decoding="async" src="" alt="" width="1" height="1" /></div>
]]></content:encoded>
			

		<wfw:commentRss>https://www.edwinmsarmiento.com/using-linq-with-sql-server-compact-edition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
				<post-id xmlns="com-wordpress:feed-additions:1">145</post-id>	</item>
	</channel>
</rss>