XML Definition Of Entities

Posts   
 
    
just-in
User
Posts: 2
Joined: 01-Feb-2007
# Posted on: 06-Feb-2007 11:48:19   

Hi,

We're buying LLBLGen today :-) So I'll be working with it a lot

I'm looking into generating an XML definition of the Entities LLBLGen produces when generating the DataLayer. Can I write a Custom template to do this?

Greetz,

Justin

jbb avatar
jbb
User
Posts: 267
Joined: 29-Nov-2005
# Posted on: 06-Feb-2007 15:20:06   

Hello,

with a template you can add your own lines of codes into the generated code. So you can add some custom xml into the entityfiles to generate a documentation later for example. The best way to do it, is to modifiy an existing template and only add the lines you need.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39776
Joined: 17-Aug-2003
# Posted on: 06-Feb-2007 15:40:44   

WIth 'modify' of course a COPY of the original is meant. simple_smile

Please consult the SDK for further details about the template languages, how to create templates, etc. etc. Also check out template studio. Both are available in the customer area, under the extras section.

Frans Bouma | Lead developer LLBLGen Pro
just-in
User
Posts: 2
Joined: 01-Feb-2007
# Posted on: 09-Feb-2007 16:49:25   

Ok, Thanks, I've downloaded everything and read most of the SDK. I think I can still use a bit of guidance of wich components I need to develop (i.e. tasks, templates etc)

I actually want to accomplish the following scenario:

When I generate code based on the adapter Template Group (or mabye it's better to create a new template group?) I want to generate a seperate XML file for each entity and typed list in the project.

Something with a schema like

<Entity1> <field name="Field1" Type="String" /> </Entity1>

I also have some additional questions:

Since my XML files are not very language specific how can I decouple it from .NET20 and or c#. ? Is see there is a definition for the XML language but can not see it in the generate window?

At this stage it's a bit complex for me to grasp wich steps I need to implement so I hope you can help me with that.

Walaa avatar
Walaa
Support Team
Posts: 14987
Joined: 21-Aug-2005
# Posted on: 09-Feb-2007 17:23:27   

The following thread might shed some light on "Tasks": http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=6998