Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.Save(Object, Object) Method

Persist the given transient instance with the given identifier.

[Visual Basic]
Public NotOverridable Overloads Sub Save( _
   ByVal entity As Object, _
   ByVal id As Object _
) _
    Implements ICommonHibernateOperations.Save
[C#]
public void Save(
   object entity,
   object id
);

Parameters

entity
The transient instance to persist.
id
The identifier to assign.

Implements

ICommonHibernateOperations.Save

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

HibernateTemplate Class | Spring.Data.NHibernate.Generic Namespace | HibernateTemplate.Save Overload List