2009-09-06 100 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; } 
} 

回答