Пример #1
0
        /// <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;
        }
Пример #2
0
 public Schueler(diNoDataSet.SchuelerRow s)
 {
     this.Id = s.Id;
       this.data = s;
 }