<?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 : How do others handle detail lines?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : How do others handle detail lines?</description>
  <pubDate>Sat, 11 Apr 2026 16:48:34 -700</pubDate>
  <lastBuildDate>Tue, 19 Oct 2010 09:51:40 -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=2225</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>How do others handle detail lines? : #2 without hesitation.  Invoice...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2225&amp;PID=8820#8820</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2225<br /><strong>Posted:</strong> 19-Oct-2010 at 9:51am<br /><br />#2 without hesitation.<DIV>&nbsp;</DIV><DIV>Invoice basically having its own ViewModel when 'Add Detail' is commanded we InvoiceDetail.Create(Invoice) which returns the new InvoiceDetail which goes into the VM's InvoiceDetails Collection. Throw in some housekeeping code. Very desirable options. As in canceling the InvoiceDetail, not the Invoice, or rolling back&nbsp;to various states of the InvoiceDetail.</DIV>]]>
   </description>
   <pubDate>Tue, 19 Oct 2010 09:51:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2225&amp;PID=8820#8820</guid>
  </item> 
  <item>
   <title>How do others handle detail lines? : I have been debating this for...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2225&amp;PID=8780#8780</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> 2225<br /><strong>Posted:</strong> 13-Oct-2010 at 11:29am<br /><br />I have been debating this for a while now and would like to hear how others handle this situation. You have 2 classes, Invoice and InvoiceDetail. Invoice is the parent and InvoiceDetail is the child. The user creates a new invoice by clicking a button so you call Invoice.Create() and it creates a new invoice object in memory. They add a detail line by clicking add on a grid.&nbsp; Which of the following do you use or is there another I am missing? <DIV>&nbsp;</DIV><DIV>#1 - Create an InvoiceDetail object by calling InvoiceDetail.Create which creates an object in memory and link the child to the parent. Call Save on the step. The problem is if the user cancels the whole invoice, then you have to remove that object.</DIV><DIV>&nbsp;</DIV><DIV>#2 -&nbsp; Create an InvoiceDetail object by calling InvoiceDetail.Create which creates an object in memory and link the child to the parent. Do not save the detail line but add it to a ObservableCollection of Invoice Details. When the invoice is saved, the Invoice parent and the list of children are saved to the appropriate tables. If the invoice is cancelled, then the Invoice object is cancelled and the ObservableCollection children are removed from memory and the list is destroyed.</DIV><DIV>&nbsp;</DIV><DIV>I used to do #1 but I am beginning to do #2 now for new projects. Any thoughts out there?</DIV><DIV>&nbsp;</DIV><DIV>Bill</DIV>]]>
   </description>
   <pubDate>Wed, 13 Oct 2010 11:29:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2225&amp;PID=8780#8780</guid>
  </item> 
 </channel>
</rss>