CodeSmith Community
Your Code. Your Way. Faster!

my Visual Studio 2005/.Net 2/CSLA 2.14 templates

Latest post 11-01-2007 7:55 PM by muzamil.lone. 1 replies.
  • 09-26-2007 8:56 PM

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

    my Visual Studio 2005/.Net 2/CSLA 2.14 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: 35
  • 11-01-2007 7:55 PM In reply to

    Re: my Visual Studio 2005/.Net 2/CSLA 2.14 templates

    Hi,

    This is Muzamil, and i am working with EDS and i am pursuing B level from DOEACC society

    and i  want to do some  course in .net ... so please suggest me..

    • Post Points: 5
Page 1 of 1 (2 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems