Skip to content

Commit cf96958

Browse files
committed
fix android app
1 parent 1e95396 commit cf96958

15 files changed

Lines changed: 692 additions & 2 deletions

EatSomewhere/Data/Assembly.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public class Assembly
88
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
99
public string Id { get; set; }
1010
public List<User> Users { get; set; }
11+
public List<User> Pending { get; set; }
1112
public string Name { get; set; }
1213
public string Description { get; set; }
1314
public List<User> Admins { get; set; }

EatSomewhere/Data/Ingredient.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ public class Ingredient
77
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
88
public string Id { get; set; }
99
public string Name { get; set; }
10+
public double Cost { get; set; }
11+
public double Amount { get; set; }
12+
public Unit Unit { get; set; }
1013
public Assembly Assembly { get; set; }
1114
}

EatSomewhere/Database/AppDbContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
2525
modelBuilder.Entity<Assembly>().HasKey(x => x.Id);
2626
modelBuilder.Entity<Assembly>().Navigation(x => x.Users).AutoInclude();
2727
modelBuilder.Entity<Assembly>().Navigation(x => x.Admins).AutoInclude();
28+
modelBuilder.Entity<Assembly>().Navigation(x => x.Pending).AutoInclude();
2829

2930
modelBuilder.Entity<Food>().HasKey(x => x.Id);
3031
modelBuilder.Entity<Food>().Navigation(x => x.Assembly).AutoInclude();

0 commit comments

Comments
 (0)