The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Codesmith Field Case Sensitivity

Last post 06-20-2008, 6:08 PM by David.Parsons. 2 replies.
Sort Posts: Previous Next
  •  06-20-2008, 4:53 PM 9923

    Codesmith Field Case Sensitivity

    I'm writing my own scaffolding framework for EntitySpaces in CodeSmith (I want my sites to function a very specific way).  One issue I've ran into is CodeSmith is using the field names as I see them in SQL Server Management Studio but on some fields Entity Spaces isn't for instance I have a field that Entity Spaces generates as being "Cvv" but in the database and with the Codesmith ColumnSchema Name property it is "CVV" so I have to manually edit these entries (undoing some of the automation I'm striving for).  Does anyone know how to change Entity Spaces 2007 so it doesn't change the case of the field names (I also always hate how my ID fields become Id) or how in CodeSmith to get the same case as EntitySpaces?  Also if I need to make a change in EntitySpaces for this do I have to purchase the SourceCode?
  •  06-20-2008, 5:43 PM 9924 in reply to 9923

    Re: Codesmith Field Case Sensitivity

    The EntitySpaces metadata engine doesn't change the case on columns. Are you sure you're using our EntitySpaces.MetadataEngine.dll in your templates? Please post some of your template code that generated differenent cased names. You must be using the CodeSmith Schema Explorer API?

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  06-20-2008, 6:08 PM 9925 in reply to 9924

    Re: Codesmith Field Case Sensitivity

    You do not need to purchase source to get the PascalCased class and property names generated by EntitySpaces. If you upgrade to ES2008, and use our EntitySpaces.MetadataEngine in your CodeSmith scaffolding templates, you can access either the unadulterated column names from the database, or the entity, collection, and property names as PascalCased by the EntitySpaces templates.
    David Neal Parsons
    www.entityspaces.net
View as RSS news feed in XML