Aufgabe OR-Mapper

This commit is contained in:
2025-06-16 15:01:00 +02:00
parent 8813c83ed9
commit 92893665fe
8 changed files with 101 additions and 5 deletions

View File

@@ -1,8 +1,14 @@
namespace FahrzeugDatenBank;
using System.ComponentModel.DataAnnotations.Schema;
namespace FahrzeugDatenBank;
[Table("fahrzeuge")]
public class FahrzeugDTO
{
[Column("id")]
public int Id { get; set; }
[Column("fahrzeug_name")]
public string? Name { get; set; }
[Column("fahrzeug_typ")]
public string? Typ { get; set; }
}