/// <summary>
/// Saves 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.
/// <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 ActiveRecord instance to be saved</param>
public static void SaveAndFlush(object instance)
{
ActiveRecordBase.SaveAndFlush(instance);
}