Added ability to modify image of existing items
This commit is contained in:
@@ -16,11 +16,6 @@ public class WalletContext(DbContextOptions<WalletContext> options) :
|
||||
modelBuilder.Entity<ItemEntry>()
|
||||
.HasKey(x => x.Id);
|
||||
|
||||
modelBuilder.Entity<ItemEntry>()
|
||||
.Property(x => x.Id)
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasDefaultValueSql("NEWID()");
|
||||
|
||||
modelBuilder.Entity<ItemEntry>()
|
||||
.HasMany(x => x.Tags)
|
||||
.WithOne()
|
||||
@@ -40,10 +35,5 @@ public class WalletContext(DbContextOptions<WalletContext> options) :
|
||||
|
||||
modelBuilder.Entity<BlobEntry>()
|
||||
.HasKey(x => x.Id);
|
||||
|
||||
modelBuilder.Entity<BlobEntry>()
|
||||
.Property(x => x.Id)
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasDefaultValueSql("NEWID()");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user