in

The ORM Foundation

Get the facts!

Adding unmodified name attributes to the Linq model

Last post 08-21-2013 19:16 by jebailey1120. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 08-21-2013 19:16

    Adding unmodified name attributes to the Linq model

    I am using NORMA to build out my data model for an MVC application.  I would like to add the DisplayName attribute to the column properties generated so that they will display in my MVC application properly.  I thought this would be easy by modifying the DCILtoLinqAttributeMapping.xslt file, and I was able to add the attribute by modifying this file.  I can not seem to figure out how to get the actual object name to appear here however, the name is modified to remove spaces.  The closest I've been able to get is camel casing the name, but this is not what I was hoping for.

     It would be nice if I could add both a DisplayName (the actual name of the object) and description attributes to the generated code, but I can not seem to get these properties to fall through.

     Any help would be appreciated. 

Page 1 of 1 (1 items)
© 2008-2014 The ORM Foundation: A UK not-for-profit organisation -------------- Terms of Service