[CompositeKey] must be used instead of [PrimaryKey] on the class using the key, not the key class itself. See http://www.castleproject.org/activerecord/documentation/trunk/usersguide/pks.html#CompositePK for details. If this helps you, we would be grateful if you rectify the wiki page.
Thanks, Markus 2009/3/25 Mark Jensen <don...@gmail.com> > > Hi > > Im trying out the CompositeKey Example from here > > http://using.castleproject.org/display/AR/Mappings#Mappings-CompositeKeys > > But I get an error : > > Error 1 Attribute 'CompositeKey' is not valid on this declaration > type. It is valid on 'property, indexer' declarations only. > > Has something changed? > > /Mark > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to castle-project-users@googlegroups.com To unsubscribe from this group, send email to castle-project-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---