Looking for a reference of the classes which are used in templates

Posts   
 
    
chrissie
User
Posts: 84
Joined: 05-Oct-2010
# Posted on: 08-Oct-2010 11:33:17   

hi, my name is chris.i just evaluate llblgen in creating an example (llblgen newest release, using pocos). my question is: where can i find a reference of the classes used in templates? in detail, i will enhance the delivered text templates and will decorate the properties of the generated entities with validator attributes. for this, i need to know how to get the constraints from the database (e.g. max string length) in the template. thanx in advance, regards chris

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 09-Oct-2010 02:32:49   

Hi Chris,

You can read the SDK manual and SDK Reference Manual. There a lot of templates over there that you can take a look as well.

What LLBLGen version are you using? Here is a thread of something similar. A guy looking for a way to hide properties, adding the MetaDataAttribute using buddy classes. In the templates you have access to entity and field properties. I think that would be helpful. http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=18673&StartAtMessage=0&#104946

Give it a spin and come back here if you need further assistance.

David Elizondo | LLBLGen Support Team
chrissie
User
Posts: 84
Joined: 05-Oct-2010
# Posted on: 11-Oct-2010 09:54:07   

hi daelmo,

thanx for th reply. first of all, as i wrote, i use the newest version of llblgen, which is 3.0. unfortunately, this is not exact what i need. for sure i red the llblgen pro v3.0 sdk, but i did not find the reference sdk you mentioned. as i will build the attributes while the templates are transformed to code dynamically, i need the db metadata properties of fielddefinition as 'default value', 'max length', 'nullable' and so on. the template, you relegated on has hard coded attributes defined on the properties.

thanx in advance, regards

chris

chrissie
User
Posts: 84
Joined: 05-Oct-2010
# Posted on: 11-Oct-2010 16:12:50   

hello,

is there anybody out there?

regards chris

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 11-Oct-2010 16:35:10   

I think David ment the LLBLGen Pro v3.0 designer assemblies reference manual

**description ** LLBLGen Pro v3.0 designer assemblies reference manual (.chm format), to be used when the core designer assemblies are used in code (e.g. in .lpt templates, or inside the search form in the v3.0 designer)

This can be found in v.3.0 downalod section.

chrissie
User
Posts: 84
Joined: 05-Oct-2010
# Posted on: 11-Oct-2010 16:49:58   

hi walaa,

this seems to be exactly what i was looking for. I will mark this thread as answered.

regards

chris