CSLADesigner Object Creation Tool

CSLADesigner Object Creation Tool

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


webjedi posted on Friday, December 21, 2007

Hey all.  I wrote a quick app for myself and the community to help with the creation of objects.  I come from the world of data driven design, so when I started looking at CSLA and the principles of object driven design I was having a hard time stepping out of that world.  Additionally the number of objects created for my project started to grow.  So I started looking at Code Generators and the trouble I had with all that I looked at was that they all started with the database, which was compounding my trouble of moving away from data centric design. 

So to that end I wrote what I named CSLADesigner which I'm releasing as public domain/open source.  It's a simple tool that kick starts object creation.  Here's a quick breakdown of CSLADesigner.

There's not much to the tool in this version, mostly accomplishes generating the plumbing of the object quickly.  I don't know that it will help everyone, but for me it saves a ton of time and typos and is a little more flexible than data generated objects. 

Future ideas include, saving the objects for later modifcation, VB output, database connectivity to select stored procedures, enhanced validation, persisted object design and relationships (presently nothing gets saved anywhere) and perhaps an enhanced interface.

If the community wants the source I'd have no problem putting up the source code for the community to play with (it's hack code to be honest but I will clean it up a bit).

Drop me a line if you have any questions.

Cheers,

Ryan

webjedi replied on Friday, December 21, 2007

No sooner do I post it that I uncover some bugs and formatting issues.  Attached is the new version.

Also I started implementing VB objects.  They will be finished by the next build.

webjedi replied on Sunday, December 30, 2007

Here's an update to CSLADesigner.  I've moved all the code Generation methods into it's own library and have started to refactor it out so that one could conceivable override individual sections of each object, so like the business methods section of a BusinessBase object is broken down into it's individual components and then chain called.

I've also renamed the library to CSLADesignerLibrary3 the 3 matches the version 3 branch of CSLA, when we get closer to 3.5 I will branch to CSLADesignerLibrary35.  But that won't be until we know what the Project Tracker Sample will look like against 3.5

So having done this I've included a small app that uses the library to show how to implement it.

This version of the Library is not complete yet but is about 95% complete for CS object generation and about 33% complete for VB objects (only BusinessBase is there and it's almost done).

I anticipate having this version of the Library and sample app completed this week and then maybe if you guys want we can add it to CSLAContrib and beef it up a bit. 

Drop me a line at ryan at DELETETHISfile-new.com if you have questions or want to help out.

webjedi replied on Wednesday, January 02, 2008

Hello All,

I've moved this to Codeplex for the time being so you can all check it out.  As I see it I have only the VB version of ReadOnlyListBase to complete...(not counting any bugs or weird things).

Cheers!

DocJames replied on Thursday, January 17, 2008

webjedi:

Hello All,

I've moved this to Codeplex for the time being so you can all check it out.  As I see it I have only the VB version of ReadOnlyListBase to complete...(not counting any bugs or weird things).

Cheers!

 

The correct URL is http://www.codeplex.com/CSLADesignLibrary3

Thanks,

James

Copyright (c) Marimer LLC