CreateAndFlush() public method

Creates (Saves) a new instance to the database.
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 CreateAndFlush ( ) : void
return void
示例#1
0
 /// <summary>
 /// Creates (Saves) a new instance to the database and flushes the session.
 /// </summary>
 /// <param name="instance">The ActiveRecord instance to be created on the database</param>
 public static void CreateAndFlush(object instance)
 {
     ActiveRecordBase.CreateAndFlush(instance);
 }