Bug fixes
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
|
||||
namespace Wallet.Data;
|
||||
|
||||
public class WalletContext(DbContextOptions<WalletContext> options) :
|
||||
DbContext(options)
|
||||
public interface IConnection;
|
||||
|
||||
public class WalletContext(IConnection connection) : DbContext
|
||||
{
|
||||
public DbSet<BlobEntry> Blobs { get; set; }
|
||||
|
||||
@@ -11,6 +12,11 @@ public class WalletContext(DbContextOptions<WalletContext> options) :
|
||||
|
||||
public DbSet<TagEntry> Tags { get; set; }
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
optionsBuilder.UseSqlite($"{connection}");
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<ItemEntry>()
|
||||
|
||||
Reference in New Issue
Block a user