CSLA .NET

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

What Code Generation tool are folks using now?

rated by 0 users
This post has 15 Replies | 2 Followers

Top 500 Contributor
Posts 19
Rayk Posted: Thu, Oct 4 2007 11:05 AM
What code generation tool are folks using, where there templates are updated regularly?  I'm hoping to find somewhat recent templates.  CodeSmith seems to have fallen out of favor.

Thanks,
RayK
Top 500 Contributor
Posts 28
Philip replied on Sun, Oct 7 2007 12:49 PM

Try Code Complete .NET at www.eurowisesoft.com. It is dedicated to CSLA.NET and uses XSLT templates.

Regards

Philip

Not Ranked
Posts 1
Miguel replied on Wed, Nov 14 2007 2:32 PM

Check out CodeBreeze from SteelBlue Solutions - www.steelbluesolutions.com

It ships with CSLA code templates that are much easier to use than the competitor's.

Top 50 Contributor
Posts 131
Q Johnson replied on Thu, Dec 13 2007 9:21 AM

It's nice to see mention of new tools providing assistance to CSLA developers.  But I'd bet there are still larger numbers of users with CodeSmith (via CSLAGen) and MyGeneration.  So they certainly deserve mention on this thread, too.

 

Q Johnson
Top 500 Contributor
Posts 13
mcsean replied on Sun, Aug 10 2008 3:42 AM

You got to take a look at this one: CSLA Factory http://www.cslafactory.net/, most developer friendly, and full of potential. But if you are staying a brand new project, Code Complete.net is the only one support Linq so far.

cheers

Not Ranked
Posts 9
COBRASoft replied on Thu, Aug 14 2008 9:44 AM

Hi,

I have a problem with most code generators and I've tested almost all of them. In most you have to select templates per object and no drag & drop from database to object designer is possble. CSLAFactory looks promising indeed, together with the possible new version of COMExpress from ShoutSoft called DbCodeXpress2008 which I'm testing in alpha/beta right now.

Some others use their own framework instead of CSLA.Net (XPO/XAF from DevExpress, MM.Net from Mere Mortals, DevForce from IdeaBlade, ...). Mostly, they lack complete support for 3rd party components like DevExpress (except XAF of coarse), Janus Systems, Infragistics, ComponentOne, ... They often offer their own compilation of subclassed versions of some 3rd party components.

For me a framework generator should generate the framework as easy as possible, where combining 1 or more tables into 1 object is a breeze, with the needed parameterizable joins between those tables. I know, views do this too, but they don't have parameterizable joins and mostly can't be updated. Another big problem is synchronization of databases. This is not the functionality of a framework, but some offer objects -> database direction with no support for Synched databases.

Greetings,
Sigurd

Not Ranked
Posts 3
Holger replied on Wed, Oct 8 2008 2:19 AM

A few day ago I found a nice tool in the java world. It is called "openArchitectureWare" and you can generate nearly everthing with it. The tool is based on Eclipse and you can download a running Eclipse+OAW bundle from http://www.openarchitectureware.org/ or http://oaw.itemis.com/ .

This tool is different to other generation tools I have seen before. First you have to define your own "meta model" for code generation, e.g. "Datatype", "Entity", "Property". Then you can develop your own templates based on that meta model. It comes with a template engine language and you have syntax highlighting based on the meta model. At last you have to fill your meta model with real data (Customer, Person, ...). The model data is XML-based and there is a specific editor included. I wrote a small tool which exports our database model to the correct XML format.

I have started my development with the included example and it is the best code/model generator I have every seen, and it's free. If someone is interested, I can send some CSLA templates and samples.

Greetings

Holger

Top 500 Contributor
Posts 28
Philip replied on Wed, Oct 8 2008 2:58 AM

Just for your info, a new release of Code Complete (beta 3.5) is out, with full support for CSLA.NET 3.6, WPF and Janus controls. Sample applications for the PTracker and Northwind databases are also available for download.

Philip

Not Ranked
Posts 2
Skreen replied on Fri, Oct 10 2008 2:16 PM
COBRASoft, I too have been testing DbCodeXpress2008 and it is very promising. The ease of defining a business object that maps to multiple tables is one of it's greatest features and the automatic generation of the data access code is very powerfull indeed. I think it will be great addition to the CSLA code generators when it is finally released.
Top 500 Contributor
Posts 13
mcsean replied on Sun, Nov 2 2008 10:11 PM

Hi Holger,

Correct me if I'm wrong. Does OAW only work for Java? In fact, there is a similar tool in .Net world as well,  and its name is DSL. DSL helps you model your programing ideas into another set of templates or helping tools, if you will. (You can use DSL to model almost every aspect of your programing needs.) Then you could use these modeled templates to develop your application.

Have a look at this link http://anegm-technical.blogspot.com/, this one is the best example I can find, and it also works for CSLA.net ver3.50 as well with it's upcoming release - version beta 2.

 

Not Ranked
Posts 6

I'm a long time developer but very new to CSLA and code generation. I'm very impressed with what I see so far and hope I can make a new home here.

 

But I'm also concerned about the lack of current template support with the various code generator offerings too.  It would be nice to see more buzz about good/current templates or at least ones that are a decent base for enhancement and contribution back to the community.  Most of what's out there is pretty old, and in the case of MyGeneration as an example, it doesn't look like CSLA is in favor anymore.

 

So is anyone using a current and stable code generation product with CSLA?

Not Ranked
Posts 5
ANegm replied on Tue, Dec 2 2008 7:58 PM
Am happy to announce that Sculpture 1.0 Beta 2 was released and provide CSLA Mold.
so you can not only generate CSLA entities but generate full layered application with CSLA as data access layer, we support many technologies in each layer.
  • For Data Access Layer:
    • DAAB (Data Access Application Block).
    • NHibernate.
    • LINQ to SQL.
    • CSLA framework.
  • For Service Layer:
    • Service Library.
    • ASMX (ASP.NET Web Service).
    • WCF (Windows Communication Foundation).
  • For User Interface Layer:
    • Windows Forms.
    • WPF (Windows Presentation Foundation)
    • Silverlight.
    • ASP.NET.
    • ASP.NET MVC.
    Sculpture Home Page: http://www.codeplex.com/Sculpture
    we provide 2 screencasts introducing Sculpture.
    Top 500 Contributor
    Posts 28
    Philip replied on Fri, Dec 5 2008 12:43 AM

    Big Smile [:D]The Beta 2 version of Code Complete is out with support for thrid party controls (DevExpress, Janus and Infragisitics) and Ajax for generating the UIs.

    Visit the Code Complete site at http://www.eurowisesoft.com

    Philip

    Top 500 Contributor
    Posts 28
    Philip replied on Fri, Dec 19 2008 12:12 AM

    Hi,

     

    I am pleased to announce that Code Complete 3.5 has been released and is available for download. It ships with the latest RTM of CSLA.NET 3.6 released this week by Rocky.  You can also download fully functional code examples that use both the PTRacker the Northwind databases.

     

    Philip

    Not Ranked
    Posts 3
    gsibley replied on Sat, Jan 3 2009 1:37 PM

    Viewpoints is a new Visual Studio integrated visual model-driven development platform that can generate CSLA code (along with any other type of code). The new release contains CSLA v3.5 code generation templates, including templates for generating SQL and LINQ to SQL models. You can check it out on the Gnomz Software website.

     

    Page 1 of 2 (16 items) 1 2 Next > | 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