Castle.ActiveRecord.ActiveRecordBase.CreateAndFlush C# (CSharp) Метод

CreateAndFlush() публичный Метод

Creates (Saves) a new instance to the database.
Even within a SessionScope the operation is going to be flushed immediately. This might have side effects such as flushing (persisting) others operations that were on hold.
public CreateAndFlush ( ) : void
Результат void
		public virtual void CreateAndFlush()
		{
			CreateAndFlush(this);
		}

Same methods

ActiveRecordBase::CreateAndFlush ( object instance ) : void

Usage Example

Пример #1
0
 /// <summary>
 /// Creates (Saves) a new instance to the database and flushes the session.
 /// </summary>
 /// <param name="instance">The ActiveRecord instance to be created on the database</param>
 public static void CreateAndFlush(object instance)
 {
     ActiveRecordBase.CreateAndFlush(instance);
 }