Exemplo n.º 1
0
        public void Load(NpgsqlConnection conn)
        {
            StationMaster[] rows = BaseModel.GetRows <StationMaster>(conn, "select * from station_master");

            foreach (StationMaster row in rows)
            {
                this.Add(row.station_id, row);
            }
        }
Exemplo n.º 2
0
        public void Load(NpgsqlConnection conn, string sql)
        {
            HospitalMaster[] rows = BaseModel.GetRows <HospitalMaster>(conn, sql);

            foreach (HospitalMaster row in rows)
            {
                this.Add(row.hospital_id, row);
            }
        }