예제 #1
0
        //Metoda pro cetni z databaze pro Hlavni budovu
        public void  Connect_hl(int id)
        {
            using (Game_dataEntities context = new Game_dataEntities())
            {
                Hlavni_budova hl = context.Hlavni_budova.FirstOrDefault(r => r.Id == id);

                Bd = new Hlavni_budov(hl.Id, hl.Cena, hl.Info, hl.Nazev);
            }
        }
예제 #2
0
 public Profil(string jmeno, Hlavni_budov Hl) : base(jmeno)
 {
     hl = Hl;
 }
예제 #3
0
 public Profil(string jmeno, int id) : base(jmeno)
 {
     cn.Connect_hl(id);
     hl = cn.Bd;
 }
예제 #4
0
 //Konstruktory
 public Connect()
 {
     this.Bd = bd;
 }