[HELP]Is there any tool could generate the ORM classes?

[HELP]Is there any tool could generate the ORM classes?

Old forum URL: forums.lhotka.net/forums/t/2880.aspx


Jeff Li posted on Wednesday, May 16, 2007

Yesterday, when I evaluate the csla framework for my client, I have to create the ORM classes manually. But the other frameworks my colleagues evaluated supply some automatical tool to generate the classes.

They just need to configure some thing by UI simply, then the ORM classes generate automatically.

I want to know whether there is anything like that for CSLA's ORM classes?

Thank you for your help~ If the evaluation result is good, we will suggest my client to choose CSLA framework to implement his system.

/*****************************************************************/

Maybe the information I supply is not enough.

Simply, what I want to know is how to use the framework to map my databse.

I downloaded the csla20cs-2.1.4-070223.zip. I see the demo code, it is used the inner ORM classes, but I want to use my database.

What is the steps?

Maybe this is a fool question, but also I want to ask bravely.

 

/**************************************************************/

If there isn't the automatical tool, I want to know what you do when you develop, write the ORM manually?

Jeff Li replied on Wednesday, May 16, 2007

No matter how much you know , please write it down. I am waiting for your answer, thank you.

William replied on Wednesday, May 16, 2007

CSLA does not provide concrete ORM classes but support ORM capabilities through the DataPortal_XXX methods.

To automate the mapping between database and CSLA objects, I think the closest is to use code generation templates.
http://www.codeplex.com/CSLAcontrib/Release/ProjectReleases.aspx?ReleaseId=1155

Regards,
William

Plum replied on Wednesday, May 16, 2007

 

Hi Jeff

If you want to automatically generate ORM Classes you can use XML Gateway

(http://www.xmlgateway.co.uk/Default.aspx)

or use Codesmith.

(http://www.codesmithtools.com/)

If you want to use CodeSmith, you can download the templates at

 

http://www.codeplex.com/CSLAcontrib/Release/ProjectReleases.aspx?ReleaseId=1155

 

 

 

 

 

 

Copyright (c) Marimer LLC