Create() public method

Creates (Saves) a new instance to the database.
If within a SessionScope the operation is going to be on hold until NHibernate (or you) decides to flush the session.
public Create ( ) : void
return void
Exemplo n.º 1
0
 /// <summary>
 /// Creates (Saves) a new instance to the database.
 /// </summary>
 /// <param name="instance">The ActiveRecord instance to be deleted</param>
 public static void Create(object instance)
 {
     ActiveRecordBase.Create(instance);
 }
Exemplo n.º 2
0
 public virtual void Create()
 {
     ActiveRecordBase.Create(this);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates (Saves) a new instance to the database.
 /// </summary>
 /// <param name="instance">The ActiveRecord instance to be created on the database</param>
 protected internal static void Create(T instance)
 {
     ActiveRecordBase.Create(instance);
 }