/// <summary> /// Hole alle Daten von Neuem aus der Datenbank. /// </summary> public void Refresh() { var rst = new SchuelerTableAdapter().GetDataById(this.Id); if (rst.Count == 1) { this.data = rst[0]; } else { throw new InvalidOperationException("Konstruktor Schueler: Ungültige ID."); } this.klasse = null; this.kurse = null; this.noten = null; this.vorkommnisse = null; }
public Schueler(diNoDataSet.SchuelerRow s) { this.Id = s.Id; this.data = s; }