Beispiel #1
0
 public void Commit()
 {
     using (var trans = _session.get_current_session().BeginTransaction())
     {
         trans.Commit();
     }
 }
 public T find_by(TKey id)
 {
     return(_session.get_current_session().Get <T>(id));
 }
Beispiel #3
0
 public void save <TDomainView>(TDomainView domain_view) where TDomainView : IDomainView
 {
     _session.get_current_session().SaveOrUpdate(domain_view);
 }
 public T query_for_single <T>(Func <T, bool> query)
 {
     return(_session_coordinator.get_current_session().Query <T>().Where(query).FirstOrDefault());
 }