<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Tip 21 – How to use the Single() operator – EF 4.0 only</title><link>http://blogs.msdn.com/b/alexj/archive/2009/05/21/tip-21-the-single-operator-ef-4-0-only.aspx</link><description>This is 21st post in my ongoing series of Entity Framework Tips , and the first that is specific to EF 4.0. Entity Framework 4.0 Beta 1 As you’ve probably heard VS 2010 Beta 1 is now available to subscribers which means some of you can get your hands</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Tip 25 – How to Get Entities by key the easy way</title><link>http://blogs.msdn.com/b/alexj/archive/2009/05/21/tip-21-the-single-operator-ef-4-0-only.aspx#9727839</link><pubDate>Fri, 12 Jun 2009 00:19:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9727839</guid><dc:creator>Meta-Me</dc:creator><description>&lt;p&gt;Sometimes rather than writing this: var customer = ctx.Customers.First(c =&amp;amp;gt; c.ID == 5); You would&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9727839" width="1" height="1"&gt;</description></item><item><title>re: Tip 21 – How to use the Single() operator – EF 4.0 only</title><link>http://blogs.msdn.com/b/alexj/archive/2009/05/21/tip-21-the-single-operator-ef-4-0-only.aspx#9646243</link><pubDate>Thu, 28 May 2009 09:53:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9646243</guid><dc:creator>onemenny</dc:creator><description>&lt;p&gt;i think the terminology is a bit confusing if you compare it to First() or FirstOrDefaul().&lt;/p&gt;
&lt;p&gt;Fisrt() is same as Single() except the exception type trown while FirstOrDefault() differese from SingleOrDefault() by really creating a default instance.&lt;/p&gt;
&lt;p&gt;maybe it should be named SelectSingle() and SelectSingleOf() &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9646243" width="1" height="1"&gt;</description></item><item><title>Meta-Me : Tip 21 – How to use the Single() operator – EF 4.0 only</title><link>http://blogs.msdn.com/b/alexj/archive/2009/05/21/tip-21-the-single-operator-ef-4-0-only.aspx#9634303</link><pubDate>Thu, 21 May 2009 23:54:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9634303</guid><dc:creator>DotNetShoutout</dc:creator><description>&lt;p&gt;Thank you for submitting this cool story - Trackback from DotNetShoutout&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9634303" width="1" height="1"&gt;</description></item></channel></rss>