城堡活动记录。同一类别的两个集合
我想在 Activerecord 中有两个相同类项目的集合。 如何绘制这个?
class Project
{
[HasMany]
IList<Resource> Resources { get; set; }
[HasMany]
IList<Resource> DepartmentResources { get; set; }
}
public class Resource
{
[BelongsTo ???
}
I want to have two collections of same class items in Activerecord.
How to map this?
class Project
{
[HasMany]
IList<Resource> Resources { get; set; }
[HasMany]
IList<Resource> DepartmentResources { get; set; }
}
public class Resource
{
[BelongsTo ???
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 ColumnKey 属性,例如:
Use the ColumnKey property, e.g.: