O/RM code generator for CSLA.NET 4.3/4.5/4.6 generating Stored Procedures, Business Layer and Data Access Layer code for Wisej, WinForms, ASP.NET, WPF and Silverlight. There is a complete set of C# templates. Currently there are VB templates, but only for non DAL architecture. You are welcome to contribute with VB templates for DAL DataReader and DAL using DTO.
This release brings a lot of new features and some usability improvements. It's available at CslaGenFork release 4.6.0
Fixes and new features
Besides SQL Server, code generation can target other database engines.
Numerous fixes to VB code generation
New kinds of CslaObject: abstract base classes, custom criteria classes (wip). The place holder is a nice feature that can be used to group objects (in light blue)
Improved property handling with support for custom types (enums etc), database unbound properties and properties persisted to the database as null (read and WRITE)
Much improved inheritance support
Handle the Saved static event raised by EditableRoot with Weak Event (the generated code was causing memory leaks)
Improved database type handling (doesn't crash on geography, etc)
The "rules from DLL" feature supports rules with generic type parameters.
- 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.
The incomplete feature Generate BypassPropertyChecks was dropped. Dropped legacy support: pre CSLA .NET 4.0 projects, active objects and plugin system.
- The rules in CslaGenFork library were added to CslaContrib library;
- They are available on NuGet as CslaContrib
Browse forums, product sites, manuals and samples.
If you were told generated code is bug ridden or rigid or code gen tools are just toys, then have a second opinion.
If you had some bad experiences with CslaGen or other code gen tools, then you don't need a feature list but an argument list.
[How do I use CslaGenFork?] (link is missing...)
No, you are not sent out to the wild on your own. We try to help all the way. Or at least, some of the way...
- How do I start using it?
- How do I organize myself?
- Do I need some tools?
- Where do I fetch the free CodeSmith engine?
- Is there a suggested workflow for codegen?
About the license
CslaGenFork is MIT. This means you can use the generated code as you like: sell, borrow, lend or even give away.
CslaGen couldn't exist without the free CodeSmith DLL. Great care was taken in not breaching the CodeSmith license agreement neither by CslaGenFork nor by anyone using it, Thank you CodeSmith.