CodeSmith Community
Your Code. Your Way. Faster!

CSLA 2.0 Templates for C#

Latest post 02-21-2008 8:26 AM by ender. 16 replies.
  • 06-07-2006 7:39 AM In reply to

    • JLuc
    • Not Ranked
    • Joined on 06-06-2006
    • Posts 2
    • Points 40

    Re: CSLA 2.0 Templates for C#

    Hi Ricky,

    I got it right for the ReadOnlyChild (?????). I guess It's probably too warm here...

    I got it also for the table with the bigint primary key too. But I had to recreate the same table in a new database in SQL Server 2005. The database I had originally came from SQL 2000 and I reattached it in SQL 2005. I guess I will have to recreate the whole thing if I want to migrate...

    Thanks again and bravo for your templates.

    -JLuc

    • Post Points: 5
  • 02-21-2008 8:26 AM In reply to

    • ender
    • Not Ranked
    • Joined on 02-12-2008
    • Posts 2
    • Points 10

    Re: CSLA 2.0 Templates for C#

     Hi,

    rasupit:

    Thorsten,

    I'm glad you like them.  This is actually one of known issues in the readme file.  I'm afraid split class by using base class does not work quite right yet.  You're right the reflection is not working correctly.  I have submitted this issue but don't know if Rocky will address this in the future. 

    I have tested several work around to address this problem.

    • Put all DataPortal_xxx method in the user class
    • Override DataPortal_xxx instead of creating strongly typed overload method
    • Use closed construct
    • Modify GetMethod so it will work with open construct.

    I don't like any of those and prefer the last approach which require fixing the GetMethod.  Let me know if you find that this was not actually the framework issue but my implementation of the base class was incorrect.

    Ricky

     

    Does anyone know if this issue has been resolved? (I"m guessing not) I downloaded Codesmith very recently (Feb 2008) and I'm trying out the splitBase, and I get the error that Thorsten reported. 

     Thanks in advance.

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