in

Community

Take part in the community surrounding CodeBreeze and other products from SteelBlue Solutions.
Latest post 03-05-2009 5:18 PM by miguel. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-05-2009 10:25 AM

    CSLA: BusinessBase Class with Child...?

    Hi All,

    I'm currently in the process of evaluating CodeBreeze and I must say that I impressed by how solid the tool feels.

    The project I'm working on involves a rewrite of existing code with changes to the existing database. I will be using CSLA

    as my application framework and I'm hoping that code generation will allow me to speed up the process of writing business object.

    So to my question. Is there a technique using the existing CSLA templates to generate a Business Base class with a child class. I'm not

    seeing how this relationship would be defined.

    Thanks for you help.

    Regards,

     

    Ed

  • 03-05-2009 5:18 PM In reply to

    Re: CSLA: BusinessBase Class with Child...?

    There is, but it's not done like a traditional ORM.  That in fact is completely by design.  The issue of parent-child was one that needed to be addressed but we did not want to address it as a parent-child problem only.  The answer we came up with is a concept called Target Tags.  They are documented in the help file and I'll be putting out an article next week on how to use them for parent-child.  Quickly, I can tell you that they are like attributes that you can decorate entities with.  Their presence can be detected in a code template and used to alter the code being generated.  As you can imagine, this technique can be used for many other situations besides parent-child. 

    Check out the help file and look on the CodeBreeze Blog next week for the article.

    Miguel

Page 1 of 1 (2 items)
2008 - All rights reserved
Powered by Community Server (Commercial Edition), by Telligent Systems