Datenbank umgebaut

This commit is contained in:
Husky
2020-02-16 19:31:30 +01:00
parent 07e9a1c50b
commit 3b01d98d2c
12 changed files with 327 additions and 118 deletions

29
KanSan/Klassen/Kunde.cs Normal file
View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
namespace KanSan.Klassen
{
public class Kunde
{
public Guid ID { get; set; }
public string Vorname { get; set; }
public string Nachname { get; set; }
public string Strasse { get; set; }
public string PLZ { get; set; }
public string Ort { get; set; }
public List<Baustelle> Baustellen { get; } = new List<Baustelle>();
public void NeueBaustelle(string ort, string strasse, string projektnummer)
{
Baustelle baustelle = new Baustelle(this)
{
Ort = ort,
ID = Guid.NewGuid(),
Projektnummer = projektnummer,
Strasse = Strasse
};
Baustellen.Add(baustelle);
}
}
}