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
コード例 #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);
 }
コード例 #2
0
 public virtual void Create()
 {
     ActiveRecordBase.Create(this);
 }
コード例 #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);
 }