我如何使用SimpleRepository处理亚音速3的关系? E.g:具有作者和书(见下文),我想在这本书是坚持要永久保存的分配作者

[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; }
}
有帮助吗?

解决方案

显然,这是不可能的,根据此篇

scroll top