<?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 : What am I doing wrong?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : What am I doing wrong?</description>
  <pubDate>Thu, 11 Jun 2026 04:53:28 -700</pubDate>
  <lastBuildDate>Tue, 22 Apr 2008 13:19:11 -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=781</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>What am I doing wrong? : Thanks, Bill ... that did it.  I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=781&amp;PID=2863#2863</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=293" rel="nofollow">philpastor</a><br /><strong>Subject:</strong> 781<br /><strong>Posted:</strong> 22-Apr-2008 at 1:19pm<br /><br /><DIV></DIV>Thanks, Bill ... that did it.<DIV>&nbsp;</DIV><DIV>I would have thought that since I was calling create entity on the manager that it already knew about it :-/</DIV><DIV>&nbsp;</DIV><DIV>Thanks again,</DIV><DIV>&nbsp;</DIV><DIV>Phil</DIV>]]>
   </description>
   <pubDate>Tue, 22 Apr 2008 13:19:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=781&amp;PID=2863#2863</guid>
  </item> 
  <item>
   <title>What am I doing wrong? : After creating comp,add it to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=781&amp;PID=2862#2862</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 781<br /><strong>Posted:</strong> 22-Apr-2008 at 12:57pm<br /><br />After creating comp,&nbsp;add it to the PersistenceManager cache<DIV>&nbsp;</DIV><DIV>comp.AddToManager();</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Bill</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 22 Apr 2008 12:57:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=781&amp;PID=2862#2862</guid>
  </item> 
  <item>
   <title>What am I doing wrong? : I have the following select query...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=781&amp;PID=2861#2861</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=293" rel="nofollow">philpastor</a><br /><strong>Subject:</strong> 781<br /><strong>Posted:</strong> 22-Apr-2008 at 11:25am<br /><br /><strong>I have the following select query which works fine ...</strong><DIV><FONT face="Arial, Helvetica, sans-serif" size=2></FONT>&nbsp;</DIV><DIV><FONT face="Arial, Helvetica, sans-serif" size=2><FONT color=#0066cc>DomainModel.Manager manager = new DomainModel.Manager();</FONT></DIV><DIV><DIV><FONT color=#0066cc></FONT></DIV><DIV><FONT color=#0066cc>var query = manager.Companies;</FONT></DIV><DIV><FONT color=#0066cc>foreach (DomainModel.Company comp in query)</FONT></DIV><DIV><FONT color=#0066cc>{</FONT></DIV><DIV><FONT color=#0066cc>&nbsp;&nbsp; textBox1.Text += comp.CompanyName;</FONT></DIV><DIV><FONT color=#0066cc>}</FONT></DIV><DIV><FONT color=#0066cc>if (textBox1.Text.Length == 0)</FONT></DIV><DIV><FONT color=#0066cc>{</FONT></DIV><DIV><FONT color=#0066cc>&nbsp;&nbsp; MessageBox.Show("No Companies");</FONT></DIV><DIV><FONT color=#0066cc>}</FONT></DIV></FONT><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2><strong>... but, I cannot create a new record ...</strong></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><DIV><FONT color=#0066cc>DomainModel.Manager manager = new DomainModel.Manager();</FONT></DIV><DIV><FONT color=#0066cc>DomainModel.Company comp = manager.CreateEntity&lt;DomainModel.Company&gt;();</FONT></DIV><DIV><FONT color=#0066cc>comp.CompanyName = textBox1.Text;</FONT></DIV><DIV><FONT color=#0066cc>comp.CompanyId = 1;</FONT></DIV><DIV><FONT color=#0066cc>List&lt;DomainModel.Company&gt; list = new List&lt;DomainModel.Company&gt;();</FONT></DIV><DIV><FONT color=#0066cc>list.Add(comp);</FONT></DIV><DIV><FONT color=#0066cc></FONT>&nbsp;</DIV><DIV><FONT color=#0066cc>SaveOptions options = new SaveOptions();</FONT></DIV><DIV><FONT color=#0066cc>options.ThrowExceptionOnSaveFailure = ThrowExceptionRule.Always;</FONT></DIV><DIV><FONT color=#0066cc>manager.SaveChanges(list, options);</FONT></DIV><DIV>&nbsp;</DIV><DIV><strong>... it runs fine (no errors), but it does not create a new record in the db. So, what am I doing wrong?</strong></DIV></DIV></DIV>]]>
   </description>
   <pubDate>Tue, 22 Apr 2008 11:25:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=781&amp;PID=2861#2861</guid>
  </item> 
 </channel>
</rss>