/// <summary> /// Saves the instance to the database /// </summary> /// <param name="instance">The ActiveRecord instance to be deleted</param> public static void Save(object instance) { ActiveRecordBase.Save(instance); }
public virtual void Save() { ActiveRecordBase.Save(this); }
/// <summary> /// Saves the instance to the database. If the primary key is unitialized /// it creates the instance on the database. Otherwise it updates it. /// <para> /// If the primary key is assigned, then you must invoke <see cref="Create"/> /// or <see cref="Update"/> instead. /// </para> /// </summary> /// <param name="instance">The ActiveRecord instance to be saved</param> protected internal static void Save(T instance) { ActiveRecordBase.Save(instance); }