private ITelephone GetPhone(IDataReader rd) { ITelephone telephone = new Telephone(); telephone.Id = int.Parse(rd["id"].ToString()); telephone.Id_proprietaire = Convert.ToInt32(rd["id_proprietaire"].ToString()); telephone.Initial = rd["initial"].ToString(); telephone.Numero = rd["numero"].ToString(); return(telephone); }