LLBLGen Pro & .NET Framework 3.5 Client Profile

Posts   
 
    
shennig
User
Posts: 48
Joined: 14-Nov-2006
# Posted on: 02-Oct-2008 09:41:35   

Hi,

we are using Gen Pro Version 2.0.0.0 Final (with adapter) for a Firebird 2.0 database. In our project we use the SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll. Now we would like to use the new Microsoft .NET Framework 3.5 Client Profile in our installation. Our problem is that the SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll has the dependent assemblies System.Web.dll and System.Design.dll. But these assemblies aren’t included in the .NET Framework Client Profile.

Is there a new version of the required ORMSupportClasses.dll, that hasn’t a dependency on the System.Web- and System.Design-namespaces?

best regards,

shennig

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 02-Oct-2008 11:40:34   

This is indeed unfortunate. the 'design' stuff is in the same assembly and the web stuff is also in the same assembly so unfortunately your clients have to use the full .net framework. Removing the design stuff and datasourcecontrols from the ormsupport classes is a lot of work.

shennig
User
Posts: 48
Joined: 14-Nov-2006
# Posted on: 02-Oct-2008 11:52:07   

Walaa wrote:

This is indeed unfortunate. the 'design' stuff is in the same assembly and the web stuff is also in the same assembly so unfortunately your clients have to use the full .net framework. Removing the design stuff and datasourcecontrols from the ormsupport classes is a lot of work.

Why is the 'design' stuff needed for the ormsupport classes at all? in the namespace design are things for user designes components, where is the relation to an or-mapper?

Is there really no work around????

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 02-Oct-2008 12:06:17   

The design stuff is for the Design time management of the LLBLGenDataSource Controls.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39613
Joined: 17-Aug-2003
# Posted on: 02-Oct-2008 13:00:22   

shennig wrote:

Walaa wrote:

This is indeed unfortunate. the 'design' stuff is in the same assembly and the web stuff is also in the same assembly so unfortunately your clients have to use the full .net framework. Removing the design stuff and datasourcecontrols from the ormsupport classes is a lot of work.

Why is the 'design' stuff needed for the ormsupport classes at all? in the namespace design are things for user designes components, where is the relation to an or-mapper?

When you add an EntityCollection to a windows form, and you want to design the grid bound to it in vs.net. At that point, the entity collection is 'ran' by vs.net's designer canvas, but not fully 'ran' in the sense that it is in an application, so it has to know if it's used at design time or not. How to do that? Well, to be honest, there's not a lot of documentation on that subject, so we decided to use what worked: a flag in the designer for the entity collection class.

Keep in mind that it took a lot of work to make this design time stuff work with the runtime lib classes in all possible cases, so that for example lazy loading is switched off in selfservicing etc. as vs.net simply creates an instantiation of the form and runs the code inside the designer of vs.net.

Is there really no work around????

I'm afraid there isn't. Keep in mind that this slimmed down version of the .net framework is what Microsoft thinks is what users will need. Every assembly used which refers to something which is a normal .net class but which is inside an assembly which isn't in that streamlined set will have a problem.

You mentioned this term, it was the first time I saw it btw. Why is this a big problem btw? The .NET framework is widely spread already.

Frans Bouma | Lead developer LLBLGen Pro
jmeckley
User
Posts: 403
Joined: 05-Jul-2006
# Posted on: 02-Oct-2008 15:31:23   

Why is the 'design' stuff needed for the ormsupport classes at all?

Because LLBL is more than an ORM (like NH or AR). it also includes functionality for wizard driven GUI development.

shennig
User
Posts: 48
Joined: 14-Nov-2006
# Posted on: 02-Oct-2008 17:15:44   

At first, thanks for the answers. Now it's clear why there is this dependency and we've found out, that it's the simplest workaround to lay the two dll's for System.Design und System.Web in the installation folder of the application!

Otis wrote:

You mentioned this term, it was the first time I saw it btw. Why is this a big problem btw? The .NET framework is widely spread already.

It's not so wide-spread as you would think. Many private users haven't an .Net installed right yet. So we search for way to give the smallest installation to them, so that not so many time is spend during installation, because this is always fall back to our product.

thanks a lot for answering!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39613
Joined: 17-Aug-2003
# Posted on: 14-Oct-2008 10:18:58   

Btw, I learned MS also didn't include linq assemblies nor entity framework/linq to sql assemblies...

REally, whoever invented this client profile over at MS was a former marketing droid...

Frans Bouma | Lead developer LLBLGen Pro