Wednesday, September 08, 2010 Register    Login
Instructions

In order to add new threads or reply to existing posts, you have to be logged-in. If you are not registered yet, you need to register first, and then login with your personal credentials.

   

CslaFactory Forums
 
ForumForumSupportSupportCslaFactory CTPCslaFactory CTPProblem in BOOverrides.tt templateProblem in BOOverrides.tt template
Previous Previous
 
Next Next
New Post
 12/18/2008 12:25 PM
 

When cloning an object with child objects an exception is raised if the child collection is null.

I propose the following addition to the template to avoid the problem:

  protected override void OnDeserialized(System.Runtime.Serialization.StreamingContext context)
  {
<#   foreach(Reference child in BusinessObject.GetBusinessObjectListReferences()) { #>
   if (_<#= TTHelper.ToFieldName(child.Name) #> != null)
    _<#= TTHelper.ToFieldName(child.Name) #>.ListChanged += new System.ComponentModel.ListChangedEventHandler(<#= TTHelper.ToPropertyName(child.Name) #>_ListChanged);
<#   } #>
  }

How is it going with the beta?

New Post
 12/19/2008 7:27 AM
 

Hallo Peter,

thanks for the feedback. We will fix the bug for the beta release.

Currently we have some problems to build the setup.exe for the CslaFactory. We are working very hard to fix the problems over the x-Mas days. We hope to ship the Beta in january. Sorry, sorry for this horrible delay. In future we we plan shorter iterations.

Regards

Josef

New Post
 12/19/2008 8:08 AM
 

Shorter iterations sounds like a good idea :-)

I wish you a merry x-mas and hopefully a good new year for CslaFactory.

Peter

New Post
 12/19/2008 11:21 AM
 

Hallo Peter,

I wish you  also a merry x-mas and a happy new year.

Josef

Previous Previous
 
Next Next
ForumForumSupportSupportCslaFactory CTPCslaFactory CTPProblem in BOOverrides.tt templateProblem in BOOverrides.tt template

   

UsersOnline
Membership Membership:
Latest New User Latest: weikol
Past 24 Hours Past 24 Hours: 1
Prev. 24 Hours Prev. 24 Hours: 1
User Count Overall: 1381

People Online People Online:
Visitors Visitors: 5
Members Members: 0
Total Total: 5

Online Now Online Now: