コード例 #1
0
 public new List <IDomainObject> VratiListu(SqlDataReader reader)
 {
     try
     {
         List <IDomainObject> companies = new List <IDomainObject>();
         while (reader.Read())
         {
             Klijent company = new Klijent
             {
                 Id             = (long)reader[0],
                 NazivKompanije = reader[1].ToString()
             };
             companies.Add(company);
         }
         return(companies);
     }
     catch (Exception)
     {
         return(null);
     }
 }