Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SubSonic SimpleRepositoryは、外交関係をあまりサポートしていないようです。永続化してデータベースから自然にロードするコードモデルに外部関係を持たせるにはどうすればよいですか?
FKはDBの懸念事項です。SimpleRepoは可能な限り単純に機能するため、子オブジェクトのコレクションがある場合は、必要に応じてそれらをロードします。
public IEnumerable Kids {get {return Kids.All()。Where(x => x.ParentID == this.ID; }}
あなたはこれを手で転がさなければならないでしょう。「熱心に」ロードしたい場合は、ケースバイケースで実行してください。