【问题标题】:SubSonic 3 SimpleRepository One-to-manySubSonic 3 SimpleRepository 一对多
【发布时间】: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


    【解决方案1】:

    根据this post,显然这是不可能的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-14
      • 2012-09-05
      • 1970-01-01
      相关资源
      最近更新 更多