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

Saves a copy of the instance information to the database. May Create or Update the instance depending on whether it has a valid ID.
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 SaveCopyAndFlush ( ) : object
Результат object
Пример #1
0
 /// <summary>
 /// Saves a copy of the instance to the database and flushes the session. If the primary key is uninitialized
 /// it creates the instance in the database. Otherwise it updates it.
 /// <para>
 /// If the primary key is assigned, then you must invoke <see cref="Create(object)"/>
 /// or <see cref="Update(object)"/> instead.
 /// </para>
 /// </summary>
 /// <param name="instance">The transient instance to be copied</param>
 /// <returns>The saved ActiveRecord instance</returns>
 public static object SaveCopyAndFlush(object instance)
 {
     return(ActiveRecordBase.SaveCopyAndFlush(instance));
 }