Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ICommonHibernateOperations.Save(Object, Object) Method

Persist the given transient instance with the given identifier.

[Visual Basic]
Public Sub Save( _
   ByVal entity As Object, _
   ByVal id As Object _
)
[C#]
void Save(
   object entity,
   object id
);

Parameters

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

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

ICommonHibernateOperations Interface | Spring.Data.NHibernate Namespace | ICommonHibernateOperations.Save Overload List