Exemple #1
0
 public SStlpCely(SStlp paSStlp)
 {
     Doplnky       = new LinkedList <TDoplnok>();
     Databaza      = new Databaza();
     SStlp         = paSStlp;
     SInformacie   = new LinkedList <SInfo>();
     SLampyNaStlpe = new LinkedList <SLampaNaStlpe>();
 }
        public bool SelectPodlaId(object paIdEntity)
        {
            string select =
                $"SELECT cislo FROM s_stlp WHERE id_ulice = {SUlica.IdUlice} ORDER BY poradie";
            var rows = Databaza.SpecialSelect(select);

            foreach (var row in rows)
            {
                var stlp = new SStlp();
                stlp.SelectPodlaId(int.Parse(row["CISLO"].ToString()));
                Stlpy.AddLast(stlp);
            }
            return(true);
        }