Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Custom Templates> DTO Annotation for Llblgen Runtime Framework
 

Pages: 1
Custom Templates
DTO Annotation for Llblgen Runtime Framework
Page:1/1 

  Print all messages in this thread  
Poster Message
rlmartins
User



Location:

Joined on:
03-Oct-2016 17:15:16
Posted:
4 posts
# 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
  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
14447 posts
# 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.

  Top
rlmartins
User



Location:

Joined on:
03-Oct-2016 17:15:16
Posted:
4 posts
# 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
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37313 posts
# Posted on: 04-Oct-2016 09:54:44.  
Examples / step by step:

Entity model (but the same applies to derived model)
http://www.llblgen.com/tinyforum/GotoMessage.aspx?MessageID=136161&ThreadID=23979
http://www.llblgen.com/tinyforum/GotoMessage.aspx?MessageID=135237&ThreadID=23813

Derived model:
http://www.llblgen.com/tinyforum/GotoMessage.aspx?MessageID=135125&ThreadID=23809

Documentation:
http://www.llblgen.com/Documentation/5.0/Designer/How%20To/AssignAttributesToElements.htm


Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.