我有以下域模型: public class Playlist
{
public long Id { get; set; }
public string Title { get; set; }
public virtual ICollection<Song> Songs { get; set; }
}
public class Song
{
publ
從這些爭論在繼續: DDD - the rule that Entities can't access Repositories directly Is it ok for entities to access repositories? 還有一些在那裏感覺更好的爲域名來訪問存儲庫的情況。就拿這個例子中,它假定我需要一個TaskStatus表,其中包含一個用於報告的說明數據庫: public cl