Composite keys (Oracle)

Nov 4, 2009 at 1:19 PM

On tables with composite keys where these are foreign keys relationship in Rapid.rapd is also doubled (he does not understand that is a single key), generating a error because they have the same name:

Ambiguous moniker '//ATE_SISTEMAS/ATE_SISTEMA_USUARIO' encountered. It is used for both 'ATE_SISTEMA_USUARIO' and 'ATE_SISTEMA_USUARIO'.   


I tried just changing the name but when the entities are generated it does not recognize the new name:

The type or namespace name 'DESVERSAO' could not be found (are you missing a using directive or an assembly reference?)   



Am I doing something wrong? Exist other way to do this?

Nov 5, 2009 at 3:31 PM

we are currently looking into this issue (Extending the designer to handle the issue). What you can do is to extend the generated class by adding a new partial class outside the GeneratedCode folder. In that file, you could place your properties in there. Note you can map composite keys by having two or more fileds mapped with the Key attribute.