really good progress, need to fix tile upload
This commit is contained in:
parent
573e9ea7bf
commit
9ef43bb9f6
25 changed files with 280 additions and 112 deletions
|
@ -19,6 +19,7 @@ namespace Sledgemapper.Api.Data
|
|||
public DbSet<Session> Sessions { get; set; }
|
||||
public DbSet<UserConnection> UserConnections { get; set; }
|
||||
public DbSet<SessionUser> SessionUsers { get; set; }
|
||||
public DbSet<Snapshot> Snapshots { get; set; }
|
||||
|
||||
public MyDbContext(DbContextOptions options) : base(options)
|
||||
{
|
||||
|
@ -67,6 +68,12 @@ namespace Sledgemapper.Api.Data
|
|||
entity.HasKey(e => e.SessionUserId);
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Snapshot>().ToTable("Snapshot", "dbo");
|
||||
modelBuilder.Entity<Snapshot>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.SnapshotId);
|
||||
});
|
||||
|
||||
base.OnModelCreating(modelBuilder);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue