Currently looking at template based code generators, both for simple automation of repetitive 'boiler plate' code, and also the key elements of a company standard architecture...
I've previously used Codesmith to generate the basic Stored Procedures, Data Access Layer and base classes for Business Entities... and was happy with the result.
Now that CodeSmith is closely associated with NetTiers, it seems to have quite a few 'ticks in the box' - use of the Enterprise Library for Data Access / Configuration etc, basic Unit Test generation, and simple 'admin' type ASP.Net interfaces for lookup tables etc.
I have no experience of LLBGen Pro, which seems to be the other preferred choice... advocates claim it is just as flexible, but more specialised as an ORM generator.
Does anyone here have experience they would care to share of either / both / an alternative approach (DeKlarit seemed interesting)?
Part 2: Also, there seems to be some debate regarding architecture, e.g. NetTiers looks at db tables and produces:
Stored Procedures or Dynamic SQL
|
Wrappers for db calls via Enterprise Libraries DAAB
|
Abstract Classes for Business Entities
|
One-time generation of Concrete Business Entities
... which to me seems very logical, as when code is regenerated, you dont lose your concrete implementations of the Business Entities that contain all your business logic, and you just alter them accordingly. Another developer I worked with objected to this, saying 'partial classes were the answer'... personally I see those as simply ways to organise code rather than a logical separation, so could not see his point
Any comments....?
I've previously used Codesmith to generate the basic Stored Procedures, Data Access Layer and base classes for Business Entities... and was happy with the result.
Now that CodeSmith is closely associated with NetTiers, it seems to have quite a few 'ticks in the box' - use of the Enterprise Library for Data Access / Configuration etc, basic Unit Test generation, and simple 'admin' type ASP.Net interfaces for lookup tables etc.
I have no experience of LLBGen Pro, which seems to be the other preferred choice... advocates claim it is just as flexible, but more specialised as an ORM generator.
Does anyone here have experience they would care to share of either / both / an alternative approach (DeKlarit seemed interesting)?
Part 2: Also, there seems to be some debate regarding architecture, e.g. NetTiers looks at db tables and produces:
Stored Procedures or Dynamic SQL
|
Wrappers for db calls via Enterprise Libraries DAAB
|
Abstract Classes for Business Entities
|
One-time generation of Concrete Business Entities
... which to me seems very logical, as when code is regenerated, you dont lose your concrete implementations of the Business Entities that contain all your business logic, and you just alter them accordingly. Another developer I worked with objected to this, saying 'partial classes were the answer'... personally I see those as simply ways to organise code rather than a logical separation, so could not see his point

Any comments....?
Comment