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); } }
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); } }
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); } }
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); } }
public void Update(Instanta instanta) { using (ISession session = NHibernateHelper.OpenSession()) using (ITransaction transaction = session.BeginTransaction()) { session.Update(instanta); transaction.Commit(); } }
public List <Folder> GetByInstanta(Instanta intanta) { return(FolderRepository.GetFolderRepository.GetByInstanta(intanta)); }
public void Update(Instanta instanta) { InstantaRepository.GetInstantaRepository.Update(instanta); }
public void Remove(Instanta instanta) { InstantaRepository.GetInstantaRepository.Remove(instanta); }
public void Add(Instanta product) { InstantaRepository.GetInstantaRepository.Add(product); }
public List <Stare> GetByInstanta(Instanta instanta) { return(StareRepository.GetStareRepository.GetByInstanta(instanta)); }