亚音速3 SimpleRepository一到多
-
21-09-2019 - |
题
我如何使用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; }
}
解决方案
显然,这是不可能的,根据此篇一>
不隶属于 StackOverflow