Compatibility between .NET 1.1 and 2.0

Posts   
 
    
dchapman
User
Posts: 12
Joined: 30-Jul-2008
# Posted on: 30-Jul-2008 19:11:09   

(Version of LLBL Gen Pro: 2.0.0.0 Final)

I'm currently researching the possibility of converting an ASP.NET C# application from using .NET 1.1 to .NET 2.0. This application uses these LLBLGen Pro DLLs:

SD.LLBLGen.Pro.DQE.SqlServer.NET11 SD.LLBLGen.Pro.ORMSupportClasses.NET11

There's only one little problem: Apparently the original LLBLGen Pro project file is gone.

My question is, can you take the template code generated for a .NET 1.1 application, and the .NET 1.1 DLLs (see above) and import those into a .NET 2.0 application? From what I understand, .NET 1.1 and .NET 2.0 are "sort of" compatible (at least using 1.1 code on a 2.0, not vice-versa) with some potential problems if something is used, that was removed from 1.1 - but the 1.1-generated template code doesn't cause any compiler errors on 2.0 either.

I can't easily regenerate the template code without redoing the project though, and this seemed like it might provide a quick fix for a while. I'm curious if anyone has done this before, or if in general it seems like a good or bad idea. Obviously the code would be fully converted later to 2.0 at some point...

Thoughts, opinions and any information is welcome.

Thanks, David

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 31-Jul-2008 05:57:57   

IMOH, it would be easier to migrate everything to .NET20. I think it would be less work that what you are proposing. Did you lose your .lgp file?

David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39866
Joined: 17-Aug-2003
# Posted on: 31-Jul-2008 10:36:31   

You can use the .NET 1.1 code in .NET 2.0, with perhaps a few minor quircks related to .NET 2.0 specific aspects (so not related to our code).

If you have to rebuild the project anyway, I'd go for .NET 2.0 but you can also generate .NET 1.x code from a project so I don't fully understand the real problem (besides not having the .lgp file, which could be a bit of a problem, if there were a lot of typedlists)

Frans Bouma | Lead developer LLBLGen Pro
dchapman
User
Posts: 12
Joined: 30-Jul-2008
# Posted on: 02-Aug-2008 01:13:48   

That's one of the main problems - not having the .lgp file. The other is being a newbie to LLBLGen Pro. simple_smile

It sounds easy to just re-do the project from the database but I'm still trying to figure out how it all works!

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 02-Aug-2008 03:55:57   

Do you remember if the project has a lot of custom modifications (names, typedList, etc)? Anyway some day you will have to re-create the lgp, if you can do it now, go ahead.

David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39866
Joined: 17-Aug-2003
# Posted on: 02-Aug-2008 11:25:34   

dchapman wrote:

That's one of the main problems - not having the .lgp file. The other is being a newbie to LLBLGen Pro. simple_smile

It sounds easy to just re-do the project from the database but I'm still trying to figure out how it all works!

Create a new project in the designer, like in the videos here: http://www.llblgen.com/pages/tutorials.aspx

that should basicly get you started. Generate code in a new folder and compile it, then check whether you have to rename fields in entities etc. to make your existing code work with it (e.g. the designer by default creates for example 'OrderCollection' as the name for the field mapped onto Customer - Order, and you want that to be 'Orders'. )

Frans Bouma | Lead developer LLBLGen Pro