Castle.ActiveRecord.ActiveRecordMediator.SaveAndFlush C# (CSharp) Méthode

SaveAndFlush() public static méthode

Saves 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.

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

public static SaveAndFlush ( object instance ) : void
instance object The ActiveRecord instance to be saved
Résultat void
		public static void SaveAndFlush(object instance)
		{
			ActiveRecordBase.SaveAndFlush(instance);
		}