truncate es truncate, delete es delete.

session.CreateQuery("delete Entidad")
session.CreateSQLQuery("delete Tabla")
session.CreateSQLQuery("truncate table Tabla")

Elegí el que te guste.

   Diego


2010/4/27 Roberto Ramírez <[email protected]>

> Buenas tardes a todos...
>
> ¿Cual es el equivalente a hacer un Truncate Table de SQL Server en NH?
>
> Algo asi como "Delete From Table".
>
> Gracias...
>
> --
> Para escribir al Grupo, hágalo a esta dirección:
> [email protected]
> Para más, visite: http://groups.google.com/group/NHibernate-Hispano
>

-- 
Para escribir al Grupo, hágalo a esta dirección: 
[email protected]
Para más, visite: http://groups.google.com/group/NHibernate-Hispano

Responder a