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

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

Saves a copy of the instance information to the database. May Create or Update the instance depending on whether it has a valid ID.
If within a SessionScope the operation is going to be on hold until NHibernate (or you) decides to flush the session.
public SaveCopy ( ) : object
Результат object
        public virtual object SaveCopy()
        {
            return SaveCopy(this);
        }

Same methods

ActiveRecordBase::SaveCopy ( object instance ) : object

Usage Example

Пример #1
0
 /// <summary>
 /// Saves a copy of instance to the database
 /// </summary>
 /// <param name="instance">The transient instance to be copied</param>
 /// <returns>The saved ActiveRecord instance</returns>
 public static object SaveCopy(object instance)
 {
     return(ActiveRecordBase.SaveCopy(instance));
 }
All Usage Examples Of Castle.ActiveRecord.ActiveRecordBase::SaveCopy