Saves a copy of the instance to the database and flushes the session. If the primary key is unitialized
it creates the instance on the database. Otherwise it updates it.
Namespace: Castle.ActiveRecord
If the primary key is assigned, then you must invoke Create(Object) or Update(Object) instead.
Assembly: Castle.ActiveRecord (in Castle.ActiveRecord.dll)
Version: 1.0.3.0
Syntax
| C# |
|---|
public static void SaveCopyAndFlush( Object instance ) |
Parameters
- instance
- Object
The transient instance to be copied
Return Value
The saved ActiveRecord instance
See Also
ActiveRecordMediator Class
Castle.ActiveRecord Namespace