using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace BWPMModels { public class Schueler { public int ID { get; set; } = 0; public int? klasseID { get; set; } = 0; public int? klassentypID { get; set; } = 0; [Required(ErrorMessage = "Feld darf nicht leer sein.")] public string name { get; set; } = ""; [Required(ErrorMessage = "Feld darf nicht leer sein.")] public string vorname { get; set; } = ""; public string bemerkung { get; set; } = ""; public bool? aktiv { get; set; } = true; public DateTime? erstellt_am { get; set; } = DateTime.Now; public DateTime? mutiert_am { get; set; } = DateTime.Now; public string mutierer { get; set; } = ""; public int? mandantnr { get; set; } = 0; } }