How to upgrade from CSLA 3.6.3 to the latest stable version

How to upgrade from CSLA 3.6.3 to the latest stable version

Old forum URL: forums.lhotka.net/forums/t/10810.aspx


stiv posted on Tuesday, October 25, 2011

Hello,

I have an application written with CSLA 3.6.3, the application has about 200 objects.

Do i have to write all the objects again (built the entire application) to upgrade to the latest CSLA stable version or is there any way to do it automatically?

Any help will be appreciated, thank in advance,

 

Stiv

 

 

 

 

 

RockfordLhotka replied on Tuesday, October 25, 2011

Getting to 3.8.4 should require relatively little effort.

Getting to 4.1 is harder, because CSLA 4 introduced a new rules engine, and that requires changing business, validation, and authorization rule code.

If your application is being created using code generation, it might be as simple as getting or creating new code gen templates. Otherwise these are code changes, so I don't know how you'd automate them.

The FAQ has links to other information about versions and upgrading:

http://www.lhotka.net/cslanet/faq/CslaVersions.ashx

JonnyBee replied on Thursday, October 27, 2011

In addition to the resources on the FAQ page:

1. I strongly recommend to use intermediate base classes. This will allow you to add f.ex RegisterProperty extensions that do not use Lambdas.
2. As a total you should be prepared to rewrite or change to use standard rules (and there's a nice rule library available at http://cslagenfork.codeplex.com
3. DataAccess code and Object factories should only require a few tweaks.

So - you should be able to keep the property declarations and data access code. Authz/BusinessRules should be rewritten to classes and use the new features -  especially async rules is much easier now.

 

 

Copyright (c) Marimer LLC