Set Foreign Key name for HasAndBelongsToMany with Castle ActiveRecord
Is it possible to set the name of the foreign key constraints added for a HasAndBelongsToMany relationship?
For BelongsTo there is a For开发者_C百科eignKey attribute, but there doesn not seem to be an equivilant for HABTM.
To the best of my knowledge, this is not implemented. But it would be great if you could implement it and contribute it to the project! This doesn't seem to be hard to implement. Source code is here, and the Castle team will be more than happy to help you with any issues or doubts, in the Castle dev mailing list.
精彩评论