<?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 25 – How to Get Entities by key the easy way</title><link>http://blogs.msdn.com/alexj/archive/2009/06/11/tip-25-how-to-get-entities-by-key-the-easy-way.aspx</link><description>Sometimes rather than writing this: var customer = ctx.Customers.First(c =&amp;gt; c.ID == 5); You would rather write something like this: var customer = ctx.Customers.GetCustomerById(5); In .NET 4.0 this would be trivial to do by modifying the T4 templates</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Meta-Me : Entity Framework Tips</title><link>http://blogs.msdn.com/alexj/archive/2009/06/11/tip-25-how-to-get-entities-by-key-the-easy-way.aspx#9727840</link><pubDate>Fri, 12 Jun 2009 00:21:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9727840</guid><dc:creator>Meta-Me : Entity Framework Tips</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/alexj/archive/2009/03/26/index-of-tips.aspx"&gt;http://blogs.msdn.com/alexj/archive/2009/03/26/index-of-tips.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Entity Framework – comment  récupérer plus simplement une seule entité ?</title><link>http://blogs.msdn.com/alexj/archive/2009/06/11/tip-25-how-to-get-entities-by-key-the-easy-way.aspx#9737855</link><pubDate>Fri, 12 Jun 2009 22:25:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9737855</guid><dc:creator>Matthieu MEZIL</dc:creator><description>&lt;p&gt;Alex James a &amp;#233;crit une extension m&amp;#233;thode qui permet de r&amp;#233;cup&amp;#233;rer depuis une requ&amp;#234;te une seule entit&amp;#233;&lt;/p&gt;
</description></item><item><title>Entity Framework v2: How to get only one entity easier with EF4</title><link>http://blogs.msdn.com/alexj/archive/2009/06/11/tip-25-how-to-get-entities-by-key-the-easy-way.aspx#9751448</link><pubDate>Sun, 14 Jun 2009 23:07:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9751448</guid><dc:creator>Matthieu MEZIL</dc:creator><description>&lt;p&gt;Alex James wrote an extension method which allows to get only one entity from a query and the entity&lt;/p&gt;
</description></item><item><title>Entity Framework v2: How to get only one entity easier with EF4</title><link>http://blogs.msdn.com/alexj/archive/2009/06/11/tip-25-how-to-get-entities-by-key-the-easy-way.aspx#9751967</link><pubDate>Mon, 15 Jun 2009 06:21:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9751967</guid><dc:creator>VS2010学习</dc:creator><description>&lt;p&gt;Alex James wrote an extension method which allows to get only one entity from a query and the entity&lt;/p&gt;
</description></item></channel></rss>