Angefangen, Gläser-Klasse zu implementieren

This commit is contained in:
BuildTools committed 2024-06-26 20:37:17 +02:00
1 parent 8435545bec
commit 1e79620272
7 files changed
+234 -4

No files matched your search

+1 -2
View File
@@ -10,8 +10,7 @@ namespace CocktailWeb.Data
public DbSet<CocktailFlasche> CocktailFlaschen { get; set; }
public DbSet<Cocktail> Cocktails { get; set; }
public DbSet<Filler> Fillers { get; set; }
public DbSet<Glas> Glaeser { get; set; }
public DbSet<Glas> Glasses { get; set; }
public DbDataContext(IConfiguration configuration)
{
+6 -2
View File
@@ -3,9 +3,13 @@
public class Glas
{
public int Id { get; set; }
public string Name { get
public string? Name { get; set; }
public string DisplayName { get
{
return $"{Fuellmenge} ml";
string name = "";
if (Name != null) name += $"{Name} - ";
name += $"{Fuellmenge} ml";
return name;
}
}
public int Fuellmenge { get; set; }
Binary file not shown.
Binary file not shown.
View File
Whitespace-only changes.