【发布时间】:2008-10-03 15:41:25
【问题描述】:
是否可以在 ActiveRecord 类上具有基本类型(如 String)的 HasMany 关系,而无需创建另一个实体(如 (TodoListItem))来保存值。
[ActiveRecord]
public class TodoList
{
[PrimaryKey]
public int Id
{
get { return _id; }
set { _id = value; }
}
[HasMany(typeof(string)]
public IList<string> Items
{
get { return _items; }
set { _items= value; }
}
}
谁能帮忙?
【问题讨论】:
标签: c# collections castle-activerecord