upgrade recipe available?

upgrade recipe available?

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


mtagliaf posted on Wednesday, November 01, 2006

Does anyone have a list of stuff that needs to be done to upgrade a CSLA 1.x class to CSLA 2.<latest>?

I have a CSLA 1.52 project that I wasn't planning on ever upgrading, but a customer just asked about something that could be solved with 2.x (business rules that trigger warnings but still allow the object to be saved).

I'm wondering if there's a "recipe" to follow when converting a class over.

thanks,
matt tag

Bayu replied on Wednesday, November 01, 2006

There is no ready-for-use recipe. Just this changelog: http://www.lhotka.net/Article.aspx?id=1b043659-c5e2-4832-ae48-048ca281c038

I hope that following this document you will be able to derive your own recipe ...

Bayu

phowatt replied on Wednesday, November 01, 2006

Matt,

I have converted from the earlier CSLA version to the latest 2.1 and the biggest difference I found was in the validation stuff.  Once you understand it the conversion is not too bad.  I can give you a couple code snippets of validation stuff if you like as a reference.  But I suppose it could be different for you depending on how you have written your business classes.  My validation code is pretty straight forward.  I am not using any of the warning features. 

 

 

JoeFallon1 replied on Wednesday, November 01, 2006

Many months ago a Word document was published by a CSLA user who did a conversion from 1.x to 2.0 and included a set of issues that may need to be resolved and some suggestions on how to do it. If you want it then let me have an email address and I will forward it.

Joe

One tip:

Add a reference to a new .dll named System.Configuration.dll before trying to change a warning about ConfigurationManager. MS deprecated the namespace in System.dll related to Configuration and created a new .dll but never told anyone to reference it first.

mtagliaf replied on Wednesday, November 01, 2006

thanks, I'll take it. You can send to mtagliaf -at- cleindians -dot- com

matt tag

eslater replied on Monday, April 02, 2007

Joe,

I am about to do the upgrade myself and was wondering if you still had the word doc kicking around.  If so I would appreciate it if you could fire it off to eslater *at* mmhouse -dot- com

Thanks,
Elliot

askywalker replied on Monday, April 02, 2007

You might give this .Net Rocks episode a listen:

http://www.dotnetrocks.com/default.aspx?showNum=169

"Rocky Lhotka discusses his CSLA.NET application framework version 2.0. New features, changes, and migration tips."

and...

http://www.dotnetrocks.com/default.aspx?showID=127

"In this episode, Rocky talks about CSLA.NET and the changes for VS2005. He drills down into the details of some aspects of CSLA, and talks about his opinions on Service Oriented Architechture and Objects, and plenty more."

JoeFallon1 replied on Tuesday, April 03, 2007

eslater:

Joe,

I am about to do the upgrade myself and was wondering if you still had the word doc kicking around.  If so I would appreciate it if you could fire it off to eslater *at* mmhouse -dot- com

Thanks,
Elliot

 

Done.

Joe

Fintanv replied on Tuesday, April 03, 2007

Any chance you could post the doc to this thread as an attachment?

Thanks
-- Fintan

JoeFallon1 replied on Wednesday, April 04, 2007

Fintanv:

Any chance you could post the doc to this thread as an attachment?

Thanks
-- Fintan

 

Done.

 

Copyright (c) Marimer LLC