2009-09-06 61 views
4

如何处理亚音速3关系中使用SimpleRepository?例如:拥有作者和书籍(请参见下文)我希望在书籍持续存在时保留指派的作者。亚音速3 SimpleRepository一个一对多

[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; } 
} 

回答