public Fach(int id) { var rst = new FachTableAdapter().GetDataById(id); if (rst.Count == 1) { this.data = rst[0]; } else { throw new InvalidOperationException("Konstruktor Kurs: Ungültige ID."); } }
public Fach(diNoDataSet.FachRow f) { data = f; }