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

SaveCopyAndFlush() public static méthode

Saves a copy of 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 SaveCopyAndFlush ( object instance ) : void
instance object The transient instance to be copied
Résultat void
        public static void SaveCopyAndFlush(object instance)
        {
            ActiveRecordBase.SaveCopyAndFlush(instance);
        }