WIP: copy process

This commit is contained in:
Michał Zieliński
2023-09-18 11:29:25 +02:00
parent 5cb362b5e0
commit 716ed532f1
11 changed files with 809 additions and 61 deletions

View File

@@ -9,6 +9,7 @@ namespace WebAPI
public DbSet<User> Users { get; set; }
public DbSet<Layer> Layers { get; set; }
public DbSet<Record> Records { get; set; }
public DbSet<ProcessSource> ProcessSources { get; set; }
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
{
@@ -16,6 +17,11 @@ namespace WebAPI
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<ProcessSource>().HasKey(x => new
{
x.LayerId,
x.SourceId
});
}
public static readonly Microsoft.Extensions.Logging.LoggerFactory _myLoggerFactory =