Update common registries page
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
namespace Hcs.WebApp.Data.Hcs
|
||||
{
|
||||
@ -7,5 +8,14 @@ namespace Hcs.WebApp.Data.Hcs
|
||||
public DbSet<Registry> Registries { get; set; }
|
||||
|
||||
public DbSet<RegistryElement> Elements { get; set; }
|
||||
|
||||
public DbSet<Operation> Operations { get; set; }
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Operation>()
|
||||
.Property(x => x.Type)
|
||||
.HasConversion(new EnumToStringConverter<Operation.OperationType>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user