Skip to content

Version 4.6.0

Latest
Compare
Choose a tag to compare
@tfreitasleal tfreitasleal released this 17 Sep 02:03
· 101 commits to master since this release

Fixes and new features

  1. Besides SQL Server, code generation can target other database engines like:
  • Oracle Database
  • PostgreSQL
  • Firebird
  • MySQL
  • SQLite
  1. Numerous fixes to VB code generation

  2. New kinds of CslaObject

  • generate abstract base classes for inheritance purposes
  • generate custom criteria classes inheriting from BusinessBase that are easier to tailor to your needs (wip)
  • place holder - this kind of object doesn't generate code, but it can be used to group objects (in light blue)

  1. Improved property handling
  • Support for custom types (enums etc)
  • Support for database unbound properties
  • Support for properties persisted to the database as null (read and WRITE)
  1. Improved inheritance support
  • fix templates and visual details
  • allow inheritance from base types defined on assembly and on the project
  • improve filters on inheritance objects lists so they only show the types that make sense
  1. Handle the Saved static event raised by EditableRoot with Weak Event (the generated code was causing memory leaks)

  2. Improved database type handling (doesn't crash on geography, etc)

  3. The "rules from DLL" feature supports rules with generic type parameters.

UI improvements

  • Improve Enum's display - for instance, show Editable Child Collection instead of EditableChildCollection or show C# instead of CSharp
  • Improve UI field hiding (show only UI fields that make sense)
  • Improve type filtering (show only objects/properties that make sense).
  • Introduce Don't ask again MessageBoxEx control and apply it where it fits.

Breaking changes

The incomplete feature Generate BypassPropertyChecks was dropped.

CGF was full of legacy code and templates. Those parts were never changed but it was unclear whether they were actually useful. To make new developments easier, legacy support was dropped.

  • Support code and templates for pre CSLA .NET 4.0 projects was removed. CGF will help you convert your project file to a supported version of CSLA .NET.
  • Support for active objects and for the plugin system was removed, as these options were available only for legacy projects.
    For those of you that continue to generate code for legacy CSLA versions, CslaGenFork 4.5.4 is and will be available on old CodePlex site.

First timers

To use or try this project, you must download both files CslaGenFork and Templates.

Note - Before attempting to generate something, go to the Tools menu, and select Locate Template Directory. Now point to the top directory of where your templates are and click "OK". That's it.

Most important, you must download the free CodeSmith extension or else you won't be able to do any operation at all.

Note - You don't need to install CodeSmith; just follow the CodeSmith Setup Guide.