Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Designer> Macro for splitting field name
 

Pages: 1
Designer
Macro for splitting field name
Page:1/1 

  Print all messages in this thread  
Poster Message
jovball
User



Location:
USA
Joined on:
23-Jan-2005 19:53:47
Posted:
393 posts
# Posted on: 25-Feb-2017 19:30:36.  
I'm looking for a way to generate the Display Name attribute value in the model. Ideally it would add a space prior to all uppercase letters after the first one. Is there a macro that would allow me to do this type of thing?

Code:

        [Display(Name = "Order Date")]
        public DateTime? OrderDate { get; set; }
Joel Reinford
LLBLGenPro Version: 5.5.3
Templates: Adapter
Framework: .Net 4.6
Database: SQL Server 2012/2014, DB2 v10
 
Top
daelmo
Support Team



Location:
Guatemala City
Joined on:
28-Nov-2005 23:35:24
Posted:
8088 posts
# Posted on: 27-Feb-2017 06:48:02.  
You can defines attributes at Project Settings, you also could do that in element level. When you define an attribute you can specify some macros. These are the built-in macros.

What you want is not possible with a simple attribute definition. You have to write code that search on your entities and change the attribute value. See the Element Search for more information.

Based on that .net code to search and replace the attribute you could write a custom plugin to set the appropriate names for the attribute. For more information see Implementing a plugin in the SDK documentation.


David Elizondo
LLBLGen'ing (articles and code snippets) | linkedin | twitter
 
Top
jovball
User



Location:
USA
Joined on:
23-Jan-2005 19:53:47
Posted:
393 posts
# Posted on: 27-Feb-2017 12:16:22.  
I'd like to request this as a new feature. Should I open a new thread in that forum for this or can you move this thread there for me? I will add more specifics when it is in the right forum.
Joel Reinford
LLBLGenPro Version: 5.5.3
Templates: Adapter
Framework: .Net 4.6
Database: SQL Server 2012/2014, DB2 v10
 
Top
daelmo
Support Team



Location:
Guatemala City
Joined on:
28-Nov-2005 23:35:24
Posted:
8088 posts
# Posted on: 27-Feb-2017 16:59:09.  
Hi Joel,

Please create a new thread on the "Feature Requests" forum ( http://www.llblgen.com/TinyForum/Threads.aspx?ForumID=35 ) and give us more details about your request. You can refer this thread there if you like.

Regards.


David Elizondo
LLBLGen'ing (articles and code snippets) | linkedin | twitter
 
Top
Pages: 1  


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

Version: 2.1.12172008 Final.