Castle.ActiveRecord.ActiveRecordBase.Save C# (CSharp) 메소드

Save() 보호된 정적인 메소드

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
리턴 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