Mass rename to align planned codename

This commit is contained in:
TheXamlGuy
2024-05-27 16:08:18 +01:00
parent 2c066097f6
commit 3631d666f5
98 changed files with 550 additions and 432 deletions
+24
View File
@@ -0,0 +1,24 @@
using Microsoft.EntityFrameworkCore;
namespace Bitvault.Data;
public class LockerContext(DbContextOptions<LockerContext> options) :
DbContext(options)
{
public DbSet<BlobEntry> Blobs { get; set; }
public DbSet<ItemEntry> Items { get; set; }
public DbSet<TagEntry> Tags { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<ItemEntry>()
.HasMany(x => x.Tags)
.WithOne();
modelBuilder.Entity<ItemEntry>()
.HasMany(x => x.Blobs)
.WithOne();
}
}