与 Ruby on Rails 相比,为什么 castle activerecord 中没有 hasOne 关系?
或者我如何表示一个地址到国家/地区的映射,其中一个地址在城堡活动记录中有一个国家/地区?
or how can i represent an address to country mapping where an address has one one country in castle activerecord?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
[BelongsTo]
属性用于一对一关系。http://api.castleproject.org/html/T_Castle_ActiveRecord_BelongsToAttribute.htm< /a>
The
[BelongsTo]
attribute is there for one-to-one relations.http://api.castleproject.org/html/T_Castle_ActiveRecord_BelongsToAttribute.htm