开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜