in

CodeSmith Community

Your Code. Your Way. Faster!

My new CSLA 2.14/VB.Net 2005/.Net 2.0 version of the business objects templates

Last post 09-13-2007 2:58 PM by GaltSalt. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 09-13-2007 2:58 PM

    • GaltSalt
    • Not Ranked
    • Joined on 07-29-2007
    • Posts 3
    • Points 45

    Gift [G] My new CSLA 2.14/VB.Net 2005/.Net 2.0 version of the business objects templates

    This is based on  pwelter34's 'Business Objects for CodeSmith' uploaded 12-19-2005.

    I found some issues with the version uploaded by pwelter34. Namely:

    • The EditableRootList.cst created factory methods with the wrong end to the function.
    • The EditableRootList.cst & EditableRoot.cst didn't jive together in the update
    • The minimize stack trace was turned on, and with it off, the properties more closely match what rocky did in the ProjectTracker20vb project for 2.14
    • dr.Read() should always be While dr.Read() so that if the record(s) no longer exist, the system doesn't blow up.
      • Your business logic should handle that (ie don't shoot the messeger). (that's just my needs; your objects may have a reason to do otherwise).
    • I personally have a different preference for stored procedure names :
      • usp_insMyTableName for 'user stored procedure to insert into MyTableName table
      • usp_selMyTableName (by primary key)
      • usp_selMyTableNamePaged (all records)
      • usp_selMyTableNameDynamic (you set the where clause & order by)
      • usp_delMyTableName
      • usp_updMyTableName
    • There was no way to tell the template to NOT create the OUTPUT statement, because my business objects create the primary key as guids in the business object. I added a PrimaryKeySupplied options to turn that off.

    I know this is just for 2.1.4, but that's what we have in production.
    I hope this helps
    Filed under:
    • Post Points: 5
Page 1 of 1 (1 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems