Create() публичный Метод

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
Результат 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);
 }