<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/App_Themes/default/rss.xslt"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Comment Feed for ADO.Net Entities / Associations (TechOff on Channel 9)</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/forums/techoff/453607-adonet-entities--associations/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Comment Feed for ADO.Net Entities / Associations (TechOff on Channel 9)</title><link>http://channel9.msdn.com/forums/TechOff/453607-ADONet-Entities--Associations/</link></image><description>ADO.Net Entities / Associations</description><link>http://channel9.msdn.com/forums/TechOff/453607-ADONet-Entities--Associations/</link><language>en-us</language><pubDate>Thu, 09 Jul 2009 14:55:15 GMT</pubDate><lastBuildDate>Thu, 09 Jul 2009 14:55:15 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3608.3122, Culture=neutral, PublicKeyToken=null)</generator><item><title>Re: Re: Re: ADO.Net Entities / Associations</title><description>&lt;p&gt;I have the exact same problem.&amp;nbsp; it doesn't appear entity framework likes composite keys.&amp;nbsp; very frustrating.&lt;/p&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/453607-ADONet-Entities--Associations/?CommentID=477661</link><pubDate>Thu, 09 Jul 2009 14:55:15 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/453607-ADONet-Entities--Associations/?CommentID=477661</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/477661/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I have the exact same problem.&amp;nbsp; it doesn't appear entity framework likes composite keys.&amp;nbsp; very frustrating.</evnet:previewtext><dc:creator>bap</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/477661/Trackback.aspx</trackback:ping></item><item><title>Re: Re: ADO.Net Entities / Associations</title><description>&lt;p&gt;Any progress on this? I'm having the same problem now.&lt;/p&gt;
&lt;p&gt;I have a couple of tables, Employees and&amp;nbsp;SecurityClearance. There are no relationships defined in the SQL Server database. They both have composite keys and I get this error when creating an association between the two.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div&gt;Error 1 Error 111: Properties referred by the Principal Role DLPSSECL must be exactly identical to the key of the EntityType Model.DLPSSECL referred to by the Principal Role in the relationship constraint for Relationship Model.DLPSSECLDLEPEM. Make sure all the key properties are specified in the Principal Role. C:\Documents and Settings\simonb\My Documents\Visual Studio 10\Projects\WpfApplication1\WpfApplication1\Model1.edmx 1 1 WpfApplication1&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Properties referred by the Principal Role SecurityClearance must be exactly identical to the key of the EntityType Model.&amp;nbsp;SecurityClearance&amp;nbsp;referred to by the Principal Role in the relationship constraint for Relationship Model.&amp;nbsp;SecurityClearanceEmployee. Make sure all the key properties are specified in the Principal Role.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;strong&gt;Employee&lt;/strong&gt;&lt;/pre&gt;
&lt;pre&gt;CompanyID (Int16) PK&lt;/pre&gt;
&lt;pre&gt;EmployeeID (Int32) PK&lt;/pre&gt;
&lt;pre&gt;SecurityClearance (string)&lt;/pre&gt;
&lt;pre&gt;Other data fields...&lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;pre&gt;SecurityClearance&lt;/pre&gt;
&lt;pre&gt;CompanyID (Int16) PK&lt;/pre&gt;
&lt;pre&gt;SecurityClearance (string) PK&lt;/pre&gt;
&lt;pre&gt;Other data fields...&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Association is between SecurityClearance and Employee (1 to Many).&lt;/p&gt;
&lt;p&gt;Mappings:&lt;/p&gt;
&lt;pre&gt;Maps to Employee&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;SecurityClearance:&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;CompanyID : Int16 &amp;nbsp;&amp;lt;-&amp;gt; CopmanyID : smallint (key field on Employee table)&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;SecurityClearance : String &amp;lt;-&amp;gt;SecurityClearance : char (data field on Employee table)&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;Employee&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;CompanyID : Int16 &amp;nbsp;&amp;lt;-&amp;gt; CopmanyID : smallint (key field on Emlpoyee table)&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;EmployeeID : Int32 &amp;nbsp;&amp;lt;-&amp;gt; &amp;nbsp;EmployeeID : int (key field on Employee table)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is creating an association in the EDMX on composite keyed tables like this supported? I've tried it in both EF v3.5 and EF v4.0 in the VS2010 beta and get the same error message when running model validation.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/453607-ADONet-Entities--Associations/?CommentID=476732</link><pubDate>Thu, 02 Jul 2009 23:05:52 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/453607-ADONet-Entities--Associations/?CommentID=476732</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/476732/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Any progress on this? I'm having the same problem now.
I have a couple of tables, Employees and&amp;nbsp;SecurityClearance. There are no relationships defined in the SQL Server database. They both have composite keys and I get this error when creating an association between the two.
&amp;nbsp;
Error 1 Error&amp;#8230;</evnet:previewtext><dc:creator>Simon Brangwin</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/476732/Trackback.aspx</trackback:ping></item><item><title>Re: ADO.Net Entities / Associations</title><description>&lt;a href="http://www.filefactory.com/file/a021673/n/EfExample2_zip"&gt;&lt;/a&gt;&lt;a href="http://www.mediafire.com/?sharekey=70e2aa9ef2d123feed24a2875c7fa58ee04e75f6e8ebb871" target="_blank"&gt;Example Project&lt;/a&gt;&lt;br /&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/453607-ADONet-Entities--Associations/?CommentID=453608</link><pubDate>Fri, 16 Jan 2009 09:41:10 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/453607-ADONet-Entities--Associations/?CommentID=453608</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/453608/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Example Project</evnet:previewtext><dc:creator>John</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/453608/Trackback.aspx</trackback:ping></item></channel></rss>