Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ICommonHibernateOperations.SaveOrUpdate Method

Save or update the given persistent instance, according to its id (matching the configured "unsaved-value"?).

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

Parameters

entity
Tthe persistent instance to save or update (to be associated with the Hibernate Session).

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

ICommonHibernateOperations Interface | Spring.Data.NHibernate Namespace