Rule of thumb:
Your domain must be consistent in RAM.

On Wed, Nov 10, 2010 at 6:24 PM, Kasper Nielsen <[email protected]> wrote:

> Thanks a lot for your answers Jason - quite a lot to take into
> consideration :-)
>
> But: Wouldn't it make sense to be able to create a new City and add it
> to a municipality like this:
>
> Municipality mun = Load(...);
> mun.Cities.Add(new City() { Name = "Cityname" });
> session.DoSomeSaveStuff();
>
> Or is it just me? I think the above would be quite intuitive.
>
> And it also makes me think: What if the relationship was only
> implemented on the Municipality class (that's an unidirectional
> mapping right?)
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>


-- 
Fabio Maulo

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to