Пример #1
0
 public static void Save <T>(this BaseObject <T> baseObject) where T : BaseObject <T>
 {
     PersistenceHelper.SessionFactory.GetCurrentSession().Save(baseObject);
 }
Пример #2
0
 public static BaseObject <T> Merge <T>(this BaseObject <T> baseObject) where T : BaseObject <T>
 {
     return(PersistenceHelper.SessionFactory.GetCurrentSession().Merge(baseObject));
 }