how to add fields Automatically in to entities?

Posts   
 
    
gregkuha60
User
Posts: 47
Joined: 23-Jan-2012
# Posted on: 25-Sep-2017 16:50:52   

Hello

I found my self often repeatedly adding the same fileds to my entities, e.g TrackCreateUser, TrackCreateTime, and such stuff. What is the best way to add this automatically? Could it be done automatically?

Should i take the time and make some kind of "plugin"?

What's your suggestions?

Maybe it has already been done?

//Greg

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39590
Joined: 17-Aug-2003
# Posted on: 26-Sep-2017 09:27:27   

Automatically, that would require a plugin indeed. But you could, if you use a recent llblgen pro version, use valuetypes with our framework. They're getting in-lined at code generation, and valuetypes can make it easier to add these fields, as you then just have to add 1 field (which is then getting the type of the valuetype) instead of all the fields in the valuetype.

So create a valuetype with the fields you add a lot, e.g. call it 'TrackingInfo', and then add a field of type 'TrackingInfo'.

Frans Bouma | Lead developer LLBLGen Pro
gregkuha60
User
Posts: 47
Joined: 23-Jan-2012
# Posted on: 26-Sep-2017 10:45:34   

Thanks. The Valutypes did really make my day.

I realized that maybe i'm not reading the release notes to well when upgrading. (Using 5.2.1 right now).

A suggestion to get a kick to start using or knowing that there are new stuff could be to do as other do and having a short webinar showing new stuff and how to use them at new releases.

For us "hate" reading.simple_smile

Thanks again for a good job.

//greg

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39590
Joined: 17-Aug-2003
# Posted on: 26-Sep-2017 12:19:46   

We'll think about it simple_smile

Interesting simple_smile Personally I hate video/webinar stuff, just give me a small piece of text/list of bulletpoints to look at.

Frans Bouma | Lead developer LLBLGen Pro