public override bool Equals(object obj) { if (obj == null || GetType() != obj.GetType()) { return(false); } ClanTima clan = obj as ClanTima; return(clan.OsobljeID == this.OsobljeID && clan.TimID == this.TimID); }
public List <IOpstiDomenskiObjekat> VratiListu(OleDbDataReader citac) { List <IOpstiDomenskiObjekat> lista = new List <IOpstiDomenskiObjekat>(); while (citac.Read()) { ClanTima clan = new ClanTima() { TimID = Convert.ToInt32(citac["timID"]), OsobljeID = Convert.ToInt32(citac["osobljeID"]), Odgovoran = Convert.ToBoolean(citac["odgovoran"]), DatumPristupa = Convert.ToDateTime(citac["datumPristupa"]) }; lista.Add(clan); } return(lista); }