How to delete an object by using PK in nhibernate?

Posted by jgauffin on Stack Overflow See other posts from Stack Overflow or by jgauffin
Published on 2010-06-17T16:55:08Z Indexed on 2010/06/17 17:03 UTC
Read the original article Hit count: 158

Filed under:
|

How do I delete an object without fetching it from the db first?

In another ORM, I can do this:

session.Delete<User>(1); // 1 = PK

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about delete