how to generate CollectionClasses?

Posts   
 
    
magic
User
Posts: 125
Joined: 24-Nov-2008
# Posted on: 23-Dec-2008 19:18:00   

I am currently trying to figure out how to use ASP GridViews together with LLBLGenProDataSources. I have downloaded the example from the homepage:

http://www.llblgen.com/pages/files/Example_3rdParty_LLBLGenProCRUDDemo.zip

When trying to reproduce what is done in the example, I figured out that when I generate the classes from my LGP project, the "CollectionClasses" (and also the "DaoClasses") are not generated. The first folder that I have in my "DatabaseGeneric" folder is "EntityClasses".

I tried to look through the generator options and also through the help and the forum, but could not find anything about this.

I'm looking forward to a hint on how to change the generator setup so that these classes are generated.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 24-Dec-2008 02:55:59   

The example you downloaded was generated using SelfServicing Template Set. You are generating code for Adapter Template Set. That's way you see two folders/projects (DBSpecific and DBGeneric).

To generate the way the example did, you need to indicate (at generation time in LLBLGen Designer) that the template set is SelfServicing.

If you want some examples for Adapter scenario, you can look at those: http://llblgen.com/pages/examples.aspx

David Elizondo | LLBLGen Support Team
magic
User
Posts: 125
Joined: 24-Nov-2008
# Posted on: 24-Dec-2008 04:26:43   

daelmo wrote:

The example you downloaded was generated using SelfServicing Template Set. You are generating code for Adapter Template Set. That's way you see two folders/projects (DBSpecific and DBGeneric).

To generate the way the example did, you need to indicate (at generation time in LLBLGen Designer) that the template set is SelfServicing.

ups ... I should read the small print too. wink Sorry.

daelmo wrote:

If you want some examples for Adapter scenario, you can look at those: http://llblgen.com/pages/examples.aspx

Is this the best example to learn about databinding (GridViews) with ASP and LGP Adapter: http://llblgen.com/pages/files/Example_WebDatabinding_06062008.zip, or would you recommend another one?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 24-Dec-2008 06:28:29   

magic wrote:

daelmo wrote:

If you want some examples for Adapter scenario, you can look at those: http://llblgen.com/pages/examples.aspx

Is this the best example to learn about databinding (GridViews) with ASP and LGP Adapter: http://llblgen.com/pages/files/Example_WebDatabinding_06062008.zip, or would you recommend another one?

Yes, that is the purpose of that example simple_smile , though other examples use databinding concepts as well. this forum, HnD is also a good example.

David Elizondo | LLBLGen Support Team