Saves the instance to the database. 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(T) or Update(T) instead.
Assembly: Castle.ActiveRecord (in Castle.ActiveRecord.dll)
Version: 1.0.3.0
Syntax
| C# |
|---|
protected internal static void Save( T instance ) |
Parameters
- instance
- T
The ActiveRecord instance to be saved
See Also
Castle.ActiveRecord Namespace