Added Aspire
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
namespace Lutra.Domain
|
||||
{
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
14
Lutra/Lutra.Domain/Entities/BaseEntity.cs
Normal file
14
Lutra/Lutra.Domain/Entities/BaseEntity.cs
Normal 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;
|
||||
}
|
||||
9
Lutra/Lutra.Domain/Entities/Supermarkt.cs
Normal file
9
Lutra/Lutra.Domain/Entities/Supermarkt.cs
Normal 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; }
|
||||
}
|
||||
23
Lutra/Lutra.Domain/Entities/Verspakket.cs
Normal file
23
Lutra/Lutra.Domain/Entities/Verspakket.cs
Normal 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; }
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user