【发布时间】:2009-09-06 20:38:41
【问题描述】:
如何在 SubSonic 3 中使用 SimpleRepository 处理关系?例如:拥有 Author 和 Book(见下文)我希望在 Book 持久化时保留分配的 Author。
[Serializable]
public class Book
{
public int Id { get; set; }
public string Title { get; set; }
public Author Author { get; set; }
}
[Serializable]
public class Author
{
public int Id { get; set; }
public string Name { get; set; }
}
【问题讨论】:
标签: subsonic3 one-to-many