New Posts New Posts RSS Feed: Change DisplayName
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Change DisplayName

 Post Reply Post Reply
Author
Bill Jensen View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 31-Jul-2007
Location: United States
Posts: 229
Post Options Post Options   Quote Bill Jensen Quote  Post ReplyReply Direct Link To This Post Topic: Change DisplayName
    Posted: 01-May-2008 at 9:42am

It's certainly a reasonable way to go, assuming doing when the Foundation module is loaded is early enough. 

Also, I'm not sure I'd put it in the AddServices() method.  Better to factor into a different "AdjustColumnDisplayNames()" method.
 
Bill J.
Back to Top
aladdin View Drop Down
Newbie
Newbie
Avatar

Joined: 18-Dec-2007
Posts: 11
Post Options Post Options   Quote aladdin Quote  Post ReplyReply Direct Link To This Post Posted: 24-Apr-2008 at 12:47pm
If you want to change the Column DisplayName (global) from AdaptedPropertyDescriptor for every entity.


public class FoundationModule : ModuleInit {  

    public override void AddServices() {

         Model.EntityPropertyDescriptors.Customers.CompanyName.SetDisplayName("Company");
         Model.EntityPropertyDescriptors.Customers.ContactName.SetDisplayName("Contact");
         ...
         Model.EntityPropertyDescriptors.Employee...

This work but is the best way to do it ?
Thanks
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down