I haven't used the C# generator of NORMA, but basically, if the templates provided don't give you the capabilities you need, you can change them or write a new one - assuming you're willing to write XSLT. Matt has provided help here in the past. In the past, I've designed and built extensive code generators for relational schema access (from an enhanced relational model) but there are also competent products and open source offerings in this space. If you want to make a mapping to one of these, http://en.wikipedia.org/wiki/List_of_object-relational_mapping_software would be a good place to start.