Added Aspire

This commit is contained in:
Maarten Zeeman
2026-02-14 20:20:50 +01:00
parent bf8c71c504
commit f8192482bf
19 changed files with 210 additions and 32 deletions

View File

@@ -1,7 +0,0 @@
namespace Lutra.Domain
{
public class Class1
{
}
}

View File

@@ -0,0 +1,14 @@
namespace Lutra.Domain.Entities;
public abstract class BaseEntity
{
public Guid Id { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime ModifiedAt { get; set; }
public DateTime? DeletedAt { get; set; }
public bool IsDeleted => DeletedAt.HasValue;
}

View File

@@ -0,0 +1,9 @@
using System.ComponentModel.DataAnnotations;
namespace Lutra.Domain.Entities;
public class Supermarkt : BaseEntity
{
[MaxLength(50)]
public required string Naam { get; set; }
}

View File

@@ -0,0 +1,23 @@
using System.ComponentModel.DataAnnotations;
namespace Lutra.Domain.Entities;
public class Verspakket : BaseEntity
{
[MaxLength(50)]
public required string Naam { get; set; }
[Range(1, 100)]
public int Cijfer { get; set; }
[MaxLength(255)]
public string? Opmerking { get; set; }
[Range(1, 10)]
public int AantalPersonen { get; set; }
public required Guid SupermarktId { get; set; }
public required virtual Supermarkt Supermarkt { get; set; }
}

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>