DTO Annotation for Llblgen Runtime Framework

Posts   
 
    
rlmartins
User
Posts: 5
Joined: 03-Oct-2016
# Posted on: 03-Oct-2016 17:18:07   

I have a LLBLGen Pro Runtime Framework Project where I created a set of "Derived Models". Is it possible to auto generate Data Annotation for the generated DTO Class members?

Thanks Ricardo

Walaa avatar
Walaa
Support Team
Posts: 14986
Joined: 21-Aug-2005
# Posted on: 03-Oct-2016 19:06:16   

You can go to the "Code Generation Info" tab, select a field, and thee you can find the Attributes sub tab where you can define extra attributes.

rlmartins
User
Posts: 5
Joined: 03-Oct-2016
# Posted on: 03-Oct-2016 20:28:25   

Walaa, Thanks for the prompt response.

Would it be possible to give me an example on how to decorate the datamembers with Required and/or Length attributes?

Also, can you please point out where in the documentation i can go to reference this?

I noticed that on EF (which i am not using), this is done on the DTO Template that LLBLGen runs during code generation.

Thanks Ricardo

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39760
Joined: 17-Aug-2003