Castle.ActiveRecord.ActiveRecordBase.Save C# (CSharp) Method

Save() protected static method

Saves the instance to the database. If the primary key is unitialized it creates the instance on the database. Otherwise it updates it.

If the primary key is assigned, then you must invoke Create() or Update() instead.

protected static Save ( object instance ) : void
instance object The ActiveRecord instance to be saved
return void
		protected internal static void Save(object instance)
		{
			InternalSave(instance, false);
		}

Same methods

ActiveRecordBase::Save ( ) : void

Usage Example

コード例 #1
0
 /// <summary>
 /// Saves the instance to the database
 /// </summary>
 /// <param name="instance">The ActiveRecord instance to be deleted</param>
 public static void Save(object instance)
 {
     ActiveRecordBase.Save(instance);
 }
All Usage Examples Of Castle.ActiveRecord.ActiveRecordBase::Save