[nhusers] Re: One to many - code implementation

2009-02-27 Thread Fabio Maulo
If you don't need a List (mean you don't need Count etc) is better to return a IEnumerable. 2009/2/27 Peter Morris > > I've gone with this... > > 01: Direct access to the field on the parent > > inverse="true"> > > > > > 02: A ReadOnlyList for accessing the children > >

[nhusers] Re: One to many - code implementation

2009-02-26 Thread Peter Morris
I've gone with this... 01: Direct access to the field on the parent 02: A ReadOnlyList for accessing the children private ISet comments = null; public ReadOnlyCollection Comments { get { return new