CSLA .NET

From Rockford Lhotka's Expert C# 2008 and VB 2008 Business Objects books

CSLADesigner Object Creation Tool

rated by 0 users
This post has 4 Replies | 1 Follower

Top 100 Contributor
Posts 59
webjedi Posted: Fri, Dec 21 2007 5:08 PM

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.

  • Templates created based on CSLA 3.0 and the ProjectTracker Sample Objects
  • Currently creates C# objects only
  • Takes user input and builds classes around them.
  • Outputed Objects still need some of your own customization to match your requirements
  • When creating your objects the first in your list is your key property.

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

Ryan http://weblogs.asp.net/RyanSmith http://www.codeplex.com/CSLADesignLibrary3
Top 100 Contributor
Posts 59

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.

Ryan http://weblogs.asp.net/RyanSmith http://www.codeplex.com/CSLADesignLibrary3
Top 100 Contributor
Posts 59

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.

Ryan http://weblogs.asp.net/RyanSmith http://www.codeplex.com/CSLADesignLibrary3
Top 100 Contributor
Posts 59
webjedi replied on Wed, Jan 2 2008 11:00 PM

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!

Ryan http://weblogs.asp.net/RyanSmith http://www.codeplex.com/CSLADesignLibrary3
Top 150 Contributor
Posts 44
DocJames replied on Thu, Jan 17 2008 1:54 PM
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

Page 1 of 1 (5 items) | RSS

Please contact Magenic for your .NET consulting
and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems