2025-09-05 16:24:44 +02:00

23 lines
576 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace FahrzeugProjekt
{
[Table("Modelle")]
public class Modell
{
[Column("ModellID")]
public int ModellID { get; set; }
[Column("Name")] // DB hat Name, nicht Modellname
public string Modellname { get; set; }
[Column("MarkenID")] // DB hat MarkenID, nicht MarkeID
public int MarkeID { get; set; }
public Marke Marke { get; set; }
public ICollection<Fahrzeug> Fahrzeuge { get; set; }
}
}