Per Object/Table Column Prefix

andy's Avatar

andy

12 May, 2010 10:59 AM via web

HI, I have had a look around for anyhting to do with column prefixes, and only found the examples of having multiple components per table with a prefix.

Is it possible to specify in a mapping that all the columns are prefixed with something?

Our DB scheema looks something like this:

Person Table: PEO_PersonID, PEO_FirstName, PEO_LastName, PEO_OwnerID
Companies Table: COM_CompanyID, COM_Name, COM_EmployeesCount
...etc

I would love to be able to specify in the mapping that all the columns are prefixed with "PEO_" for the person object without having to specify the column name for each property.

Thanks

  1. Support Staff 2 Posted by James Gregory on 16 May, 2010 05:04 PM

    James Gregory's Avatar

    There's no universal way to do prefixes, no. It'll be possible with conventions but you'll need to implement multiple convention interfaces to cover all the possible mappings you can do.

Reply to this discussion

Preview Comments are parsed with Markdown. Help with syntax

Attached Files

    You can attach files up to 10MB

    What is five times five?