are you looking for a delete by id for an entity without any delete-cascade
?

2009/9/14 Morten Maxild <[email protected]>

>  Hi,
>
>
>
> OBS: This thread started out 
> here<http://groups.google.com/group/nhprof/browse_thread/thread/8af47e25c74f50fe>on
>  NHProf list.
>
> ”As for s.Delete(s.Load(12)); NH would load the data anyway, even if the
> class is lazy, to handle cascades.”
>
> Makes sense for entities with associations to other entities controlled by
> cascade options, but what if the entity doesn’t have associations, or the
> associations doesn’t cascade?
>
>
>
> In my small investigation the Delete(Load)-statement would generate a
> SELECT even if the entity had no associations?
>
>
>
> >
>


-- 
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