我如何使用 SimpleRepository
在 SubSonic 3 中处理关系?例如:拥有作者和书籍(见下文)我希望在保留书籍时保留指定的作者。
[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; }
}
最佳答案
根据 this post,显然这是不可能的.
关于subsonic3 - SubSonic 3 SimpleRepository 一对多,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1386668/