<?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>Associations with Payloads</title><link>http://blogs.msdn.com/alexj/archive/2008/02/24/associations-with-payloads.aspx</link><description>Those of you who know what I am talking about will probably also know that we have been saying publicly that the Entity Framework doesn't support them. Now for those who don't know what an association with a payload is, imagine something like: Order &amp;lt;-</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>BioSensorAB &amp;raquo; Associations with Payloads</title><link>http://blogs.msdn.com/alexj/archive/2008/02/24/associations-with-payloads.aspx#7871677</link><pubDate>Sun, 24 Feb 2008 09:10:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7871677</guid><dc:creator>BioSensorAB » Associations with Payloads</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.biosensorab.org/2008/02/23/associations-with-payloads/"&gt;http://www.biosensorab.org/2008/02/23/associations-with-payloads/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Associations with Payloads</title><link>http://blogs.msdn.com/alexj/archive/2008/02/24/associations-with-payloads.aspx#7877421</link><pubDate>Sun, 24 Feb 2008 16:31:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7877421</guid><dc:creator>juliel</dc:creator><description>&lt;p&gt;Based on a previous discussion, you *know* I'll be waiting for that next post! :-)&lt;/p&gt;
&lt;p&gt;Julie&lt;/p&gt;</description></item><item><title>re: Associations with Payloads</title><link>http://blogs.msdn.com/alexj/archive/2008/02/24/associations-with-payloads.aspx#7883611</link><pubDate>Mon, 25 Feb 2008 01:25:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7883611</guid><dc:creator>rogerj</dc:creator><description>&lt;p&gt;The suspense is deafening!&lt;/p&gt;
&lt;p&gt;--rj&lt;/p&gt;
&lt;p&gt;Pingback from &lt;a rel="nofollow" target="_new" href="http://oakleafblog.blogspot.com/2008/02/linq-and-entity-framework-posts-for_19.html"&gt;http://oakleafblog.blogspot.com/2008/02/linq-and-entity-framework-posts-for_19.html&lt;/a&gt;&lt;/p&gt;</description></item><item><title>re: Associations with Payloads</title><link>http://blogs.msdn.com/alexj/archive/2008/02/24/associations-with-payloads.aspx#7890546</link><pubDate>Mon, 25 Feb 2008 11:52:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7890546</guid><dc:creator>MatthieuMEZIL</dc:creator><description>&lt;p&gt;Hi Alex.&lt;/p&gt;
&lt;p&gt;That's right but there is a restriction. OrderLine columns, else than OrderId and ProdcutId which are keys, must allow null (of course). Else, you can't do it. I thought to use a default value but it I don't think it's possible on an association.&lt;/p&gt;
&lt;p&gt;So the only way to do it is to change OrderLine ssdl, say that all columns (except keys) allow null and to use a ssdl function (stored procedure or a SQL function defined in ssdl part). With this, you can use a default value or use more interesting calculation. For example, imagine that you have a column quantity which doesn't allow null in your DB, you can count how many you have and add one on INSERT function. &lt;/p&gt;</description></item><item><title>Manipulation d'EDM : les relations many to many, test</title><link>http://blogs.msdn.com/alexj/archive/2008/02/24/associations-with-payloads.aspx#7894444</link><pubDate>Mon, 25 Feb 2008 19:42:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7894444</guid><dc:creator>Matthieu MEZIL</dc:creator><description>&lt;p&gt;J'en avais parl&amp;#233; aux techdays mais je vais profiter du post d' Alex pour en reparler et pour aller un&lt;/p&gt;
</description></item><item><title>re: Associations with Payloads</title><link>http://blogs.msdn.com/alexj/archive/2008/02/24/associations-with-payloads.aspx#7894457</link><pubDate>Mon, 25 Feb 2008 19:45:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7894457</guid><dc:creator>MatthieuMEZIL</dc:creator><description>&lt;p&gt;I try to do it with partial extension of entity types. I blog about it. My post is in French but what do you think of the code? Can I get the context without using reflection ?&lt;/p&gt;</description></item><item><title>Associations with Payloads - part Deux</title><link>http://blogs.msdn.com/alexj/archive/2008/02/24/associations-with-payloads.aspx#7895145</link><pubDate>Mon, 25 Feb 2008 21:36:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7895145</guid><dc:creator>Meta-Me</dc:creator><description>&lt;p&gt;Okay so the 'cat is out of the bag' you CAN do associations with Payloads... Sort of . Now for an explanation&lt;/p&gt;
</description></item><item><title>Associations with Payloads - closing the loop</title><link>http://blogs.msdn.com/alexj/archive/2008/02/24/associations-with-payloads.aspx#7898232</link><pubDate>Tue, 26 Feb 2008 06:27:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7898232</guid><dc:creator>Meta-Me</dc:creator><description>&lt;p&gt;I'm assuming you've read part 1 and part 2 , if not why not? Just kidding, they will make this post a&lt;/p&gt;
</description></item><item><title>Associations with Payloads - closing the loop</title><link>http://blogs.msdn.com/alexj/archive/2008/02/24/associations-with-payloads.aspx#7898259</link><pubDate>Tue, 26 Feb 2008 06:32:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7898259</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;I&amp;amp;#39;m assuming you&amp;amp;#39;ve read part 1 and part 2 , if not why not? Just kidding, they will make this&lt;/p&gt;
</description></item><item><title>Alex James demonstrates how to create associations that have payloads</title><link>http://blogs.msdn.com/alexj/archive/2008/02/24/associations-with-payloads.aspx#7936239</link><pubDate>Thu, 28 Feb 2008 19:26:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7936239</guid><dc:creator>Hot Topics</dc:creator><description>&lt;p&gt;If you have a many to many relationship in your database, the Entity Data Model wizard will flatten the&lt;/p&gt;
</description></item></channel></rss>