<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : A DevForce Model Is Not Generated</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : A DevForce Model Is Not Generated</description>
  <pubDate>Thu, 15 Oct 2026 14:56:42 -700</pubDate>
  <lastBuildDate>Fri, 15 Jul 2011 07:09:17 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2820</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>A DevForce Model Is Not Generated :   Great, Vincent.Glad I could...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2820&amp;PID=11242#11242</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2820<br /><strong>Posted:</strong> 15-Jul-2011 at 7:09am<br /><br />Great, Vincent.<div>&nbsp;</div><div>Glad I could help.</div><div>&nbsp;</div><div>Silvio.</div>]]>
   </description>
   <pubDate>Fri, 15 Jul 2011 07:09:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2820&amp;PID=11242#11242</guid>
  </item> 
  <item>
   <title>A DevForce Model Is Not Generated :   Originally posted by sbeliniVincent,In...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2820&amp;PID=11240#11240</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1203" rel="nofollow">vbivona</a><br /><strong>Subject:</strong> 2820<br /><strong>Posted:</strong> 14-Jul-2011 at 8:43pm<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by sbelini</strong></em><br /><br />Vincent,<br><br>In DevForce PropertyChanged is also triggered when the entities are loaded.<br><br>I'm assuming you are setting the PropertyChanged event handler in the entity's constructor. A couple reasons not to do that:<br><br>1) Setting the event handler in the constructor will not work in n-tier because serialization does not use the constructor;<br>2) If you load to many entities, you'd be setting to many event handlers (one for each entity) and that's not very efficient.<br><br>I'd suggest you use EntityGroup.EntityPropertyChanged instead:<div>&nbsp;</div><div><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas">&nbsp; var</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> eGroup = mgr.GetEntityGroup(</font></font><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas">typeof</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">(</font></font><font size="2" color="#2b91af" face="C&#111;nsolas"><font size="2" color="#2b91af" face="C&#111;nsolas"><font size="2" color="#2b91af" face="C&#111;nsolas">Employee</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">));</font></font></div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&nbsp; eGroup.EntityPropertyChanged += </font></font><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas">new</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> </font></font><font size="2" color="#2b91af" face="C&#111;nsolas"><font size="2" color="#2b91af" face="C&#111;nsolas"><font size="2" color="#2b91af" face="C&#111;nsolas">EventHandler</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&lt;</font></font><font size="2" color="#2b91af" face="C&#111;nsolas"><font size="2" color="#2b91af" face="C&#111;nsolas"><font size="2" color="#2b91af" face="C&#111;nsolas">EntityPropertyChangedEventArgs</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&gt;(eGroup_EntityPropertyChanged);</font></font></div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font><div>&nbsp;</div><div><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font color="#000000">=======================================</font><br></font></font></font></div><div>&nbsp;</div><div><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas">void</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> eGroup_EntityPropertyChanged(</font></font><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas">object</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> sender, </font></font><font size="2" color="#2b91af" face="C&#111;nsolas"><font size="2" color="#2b91af" face="C&#111;nsolas"><font size="2" color="#2b91af" face="C&#111;nsolas">EntityPropertyChangedEventArgs</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> e) {</font></font></div><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&nbsp; <font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas">if</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> (e.Property.Name == </font></font><font size="2" color="#a31515" face="C&#111;nsolas"><font size="2" color="#a31515" face="C&#111;nsolas"><font size="2" color="#a31515" face="C&#111;nsolas">"FirstName"</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">) {</font></font></font></font></div></div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font></font><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font><div><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas">&nbsp;&nbsp;&nbsp; <font color="#009900">// do something</font></font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font></div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&nbsp; }</font></font></div></div></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"><div>}</div></font></font></div><div>&nbsp;</div><div><br>Kind regards, <br>&nbsp;&nbsp; Silvio.</div> </td></tr></table><div>In my eariler message (about the property changed notifications) I was talking about the model classes that Microsoft generates, not DevForce. With the standard EF there is no way to disable notifications and that's why I wanted to look at DevForce.</div><div><br></div><div>The information you just gave me is very helpful and will definitely enable me to do what I couldn't with Microsoft's implementation. I already tried it and it's great.</div><div><br></div><div>Thanks very much,</div><div><br></div><div>Vincent</div>]]>
   </description>
   <pubDate>Thu, 14 Jul 2011 20:43:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2820&amp;PID=11240#11240</guid>
  </item> 
  <item>
   <title>A DevForce Model Is Not Generated : I solved my initial problem. I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2820&amp;PID=11239#11239</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1203" rel="nofollow">vbivona</a><br /><strong>Subject:</strong> 2820<br /><strong>Posted:</strong> 14-Jul-2011 at 8:22pm<br /><br />I solved my initial problem. I uninstalled the EntityFramework 4.1 and the June 2011 CTP. Once I did that, DevForce started generating my model classes.<div><br></div><div>Thanks for your help.</div>]]>
   </description>
   <pubDate>Thu, 14 Jul 2011 20:22:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2820&amp;PID=11239#11239</guid>
  </item> 
  <item>
   <title>A DevForce Model Is Not Generated : Vincent,In DevForce PropertyChanged...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2820&amp;PID=11238#11238</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2820<br /><strong>Posted:</strong> 14-Jul-2011 at 8:16pm<br /><br />Vincent,<br><br>In DevForce PropertyChanged is also triggered when the entities are loaded.<br><br>I'm assuming you are setting the PropertyChanged event handler in the entity's constructor. A couple reasons not to do that:<br><br>1) Setting the event handler in the constructor will not work in n-tier because serialization does not use the constructor;<br>2) If you load to many entities, you'd be setting to many event handlers (one for each entity) and that's not very efficient.<br><br>I'd suggest you use EntityGroup.EntityPropertyChanged instead:<div>&nbsp;</div><div><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas">&nbsp; var</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> eGroup = mgr.GetEntityGroup(</font></font><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas">typeof</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">(</font></font><font size="2" color="#2b91af" face="C&#111;nsolas"><font size="2" color="#2b91af" face="C&#111;nsolas"><font size="2" color="#2b91af" face="C&#111;nsolas">Employee</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">));</font></font></div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&nbsp; eGroup.EntityPropertyChanged += </font></font><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas">new</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> </font></font><font size="2" color="#2b91af" face="C&#111;nsolas"><font size="2" color="#2b91af" face="C&#111;nsolas"><font size="2" color="#2b91af" face="C&#111;nsolas">EventHandler</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&lt;</font></font><font size="2" color="#2b91af" face="C&#111;nsolas"><font size="2" color="#2b91af" face="C&#111;nsolas"><font size="2" color="#2b91af" face="C&#111;nsolas">EntityPropertyChangedEventArgs</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&gt;(eGroup_EntityPropertyChanged);</font></font></div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font><div>&nbsp;</div><div><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font color="#000000">=======================================</font><br></font></font></font></div><div>&nbsp;</div><div><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas">void</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> eGroup_EntityPropertyChanged(</font></font><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas">object</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> sender, </font></font><font size="2" color="#2b91af" face="C&#111;nsolas"><font size="2" color="#2b91af" face="C&#111;nsolas"><font size="2" color="#2b91af" face="C&#111;nsolas">EntityPropertyChangedEventArgs</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> e) {</font></font></div><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&nbsp; <font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas">if</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> (e.Property.Name == </font></font><font size="2" color="#a31515" face="C&#111;nsolas"><font size="2" color="#a31515" face="C&#111;nsolas"><font size="2" color="#a31515" face="C&#111;nsolas">"FirstName"</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">) {</font></font></font></font></div></div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font></font><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font><div><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas"><font size="2" color="#0000ff" face="C&#111;nsolas">&nbsp;&nbsp;&nbsp; <font color="#009900">// do something</font></font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font></div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&nbsp; }</font></font></div></div></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"><div>}</div></font></font></div><div>&nbsp;</div><div><br>Kind regards, <br>&nbsp;&nbsp; Silvio.</div> ]]>
   </description>
   <pubDate>Thu, 14 Jul 2011 20:16:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2820&amp;PID=11238#11238</guid>
  </item> 
  <item>
   <title>A DevForce Model Is Not Generated : Thanks for your reply.Yes, it&amp;#039;s...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2820&amp;PID=11236#11236</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1203" rel="nofollow">vbivona</a><br /><strong>Subject:</strong> 2820<br /><strong>Posted:</strong> 14-Jul-2011 at 12:18pm<br /><br />Thanks for your reply.<div><br></div><div>Yes, it's enabled. The entry is labeled "IdeaBlade OM Designer Extension". The button text says "Disable". When I click on "Disable" the entry changes to "IdeaBlade OM Designer Extension &#091;Disabled&#093;".<div><br></div><div>Maybe this is an issue:</div><div><br></div><div>Before installing DevForce, I installed VS 2010, ADO Entity Framework 4.0, then ADO Entity Framework 4.1, then the June 2011 CTP. However, I used the IdeaBlade application template to create my project and my target frame is set to .NET 4 (I also tried .NET 4 Client Profile).</div><div><br></div><div>-------</div><div>Before we spend anymore time on this, if you could first help me to see if any of this will matter. I'm trying DevForce because of something that I discovered with the EF. Since DevForce use the EF, I hoping I won't have the same problem:</div><div><br></div><div>Basically, the EF writes my model classes with the .NET Property Notification mechanism. Unfortunately, it sends this notifications (i.e. PropertyChanged) when the objects are loading. I want to attach business logic to these objects so that calculations/verifications can be performed when the Application/User actually changes the property value. At first, I assumed I wouldn't get these notifications when my object loads, I thought the EF would just set my instance variables directly and give me back the object it saved. So, it seems to me, that I would need to either disable these notifications during load time, or I have to implement a layer above the EF's model classes.</div><div><br></div><div>How does DevForce work? Would I still get property changed notifications during load time? If so, can they be disabled until after the object is loaded? Where do people put their business logic and how do they differentiate between changes made by the&nbsp;persistence&nbsp;layer and the application/user?</div></div>]]>
   </description>
   <pubDate>Thu, 14 Jul 2011 12:18:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2820&amp;PID=11236#11236</guid>
  </item> 
  <item>
   <title>A DevForce Model Is Not Generated :     Hi Vincent,You mentioned...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2820&amp;PID=11235#11235</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2820<br /><strong>Posted:</strong> 14-Jul-2011 at 10:17am<br /><br />Hi Vincent,<div>&nbsp;</div><div>&nbsp;You mentioned that "the DevForce extension appears to be enabled." Can you confirm that by looking at <em>Tools&gt;&gt;Extension Manager</em> in the VS2010 menu?</div><div>&nbsp;</div><div>Silvio.</div>]]>
   </description>
   <pubDate>Thu, 14 Jul 2011 10:17:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2820&amp;PID=11235#11235</guid>
  </item> 
  <item>
   <title>A DevForce Model Is Not Generated : I&amp;#039;m having a problem getting...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2820&amp;PID=11223#11223</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1203" rel="nofollow">vbivona</a><br /><strong>Subject:</strong> 2820<br /><strong>Posted:</strong> 12-Jul-2011 at 7:36pm<br /><br />I'm having a problem getting a DevForce model generated.<div><br></div><div>I'm using Visual Studio 2010, the DevForce extension appears to be enabled, the application templates are installed and references to DevForce DLL's/assembly are automatically added to my project. However, when I create a model, the .cs designer file doesn't have any of the DevForce classes (it's the standard EF stuff). I also don't see any DevForce properties when I click on an entity in the model designer. (There's no error messages. The key updater says my key is valid.)<div><br></div><div>Last week I installed the EF June 2011 CTP preview. However, that framework is not targeted in this project. The target for this project is .NET Framework 4. (I selected the DevForce Windows Application template for the project).<br><div><br></div><div>Am I supposed to do something else?</div></div></div><div><br></div><div>Thanks,</div><div><br></div><div>Vincent</div>]]>
   </description>
   <pubDate>Tue, 12 Jul 2011 19:36:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2820&amp;PID=11223#11223</guid>
  </item> 
 </channel>
</rss>