예제 #1
0
 public List <Folder> GetByInstanta(Instanta intanta)
 {
     using (ISession session = NHibernateHelper.OpenSession())
     {
         List <Folder> folder = (List <Folder>)session.QueryOver <Folder>().Where(x => x.Instanta.Id_instanta == intanta.Id_instanta).List();
         return(folder);
     }
 }
예제 #2
0
 public Instanta GetByName(string nume_instanta)
 {
     using (ISession session = NHibernateHelper.OpenSession())
     {
         Instanta instanta = session.QueryOver <Instanta>().Where(x => x.Nume_instanta == nume_instanta).SingleOrDefault();
         return(instanta);
     }
 }
예제 #3
0
 public Instanta GetById(int id_instanta)
 {
     using (ISession session = NHibernateHelper.OpenSession())
     {
         Instanta instanta = session.QueryOver <Instanta>().Where(x => x.Id_instanta == id_instanta).SingleOrDefault();
         return(instanta);
     }
 }
예제 #4
0
 public List <Stare> GetByInstanta(Instanta instanta)
 {
     using (ISession session = NHibernateHelper.OpenSession())
     {
         List <Stare> stareList = (List <Stare>)session.QueryOver <Stare>().Where(x => x.Instanta.Id_instanta == instanta.Id_instanta).List();
         return(stareList);
     }
 }
예제 #5
0
 public void Update(Instanta instanta)
 {
     using (ISession session = NHibernateHelper.OpenSession())
         using (ITransaction transaction = session.BeginTransaction())
         {
             session.Update(instanta);
             transaction.Commit();
         }
 }
예제 #6
0
 public List <Folder> GetByInstanta(Instanta intanta)
 {
     return(FolderRepository.GetFolderRepository.GetByInstanta(intanta));
 }
예제 #7
0
 public void Update(Instanta instanta)
 {
     InstantaRepository.GetInstantaRepository.Update(instanta);
 }
예제 #8
0
 public void Remove(Instanta instanta)
 {
     InstantaRepository.GetInstantaRepository.Remove(instanta);
 }
예제 #9
0
 public void Add(Instanta product)
 {
     InstantaRepository.GetInstantaRepository.Add(product);
 }
예제 #10
0
 public List <Stare> GetByInstanta(Instanta instanta)
 {
     return(StareRepository.GetStareRepository.GetByInstanta(instanta));
 }