Persist the given transient instance, first assigning a generated identifier. (Or
using the current value of the identifier property if the assigned
generator is used.)
Namespace: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
Object Save( string entityName, Object obj ) |
Visual Basic |
---|
Function Save ( _ entityName As String, _ obj As Object _ ) As Object |
Visual C++ |
---|
Object^ Save( String^ entityName, Object^ obj ) |
Parameters
- entityName
- Type: System..::..String
The Entity name.
- obj
- Type: System..::..Object
a transient instance of a persistent class
Return Value
the generated identifierRemarks
This operation cascades to associated instances if the
association is mapped with cascade="save-update".