using DigitalData.UserManager.Domain.Entities; using Microsoft.EntityFrameworkCore; namespace DigitalData.UserManager.Infrastructure.Repositories { public class DDECMDbContext : DbContext { public DDECMDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity() .ToTable(tb => tb.HasTrigger("TBDD_USER_AFT_DEL")) .ToTable(tb => tb.HasTrigger("TBDD_USER_AFT_INS")) .ToTable(tb => tb.HasTrigger("TBDD_USER_AFT_UPD")) .ToTable(tb => tb.HasTrigger("TBDD_USER_AFT_UPD_LOG")); modelBuilder.Entity() .ToTable(tb => tb.HasTrigger("TBDD_GROUPS_USER_AFT_DEL")) .ToTable(tb => tb.HasTrigger("TBDD_GROUPS_USER_AFT_UPD")); modelBuilder.Entity() .ToTable(tb => tb.HasTrigger("TBDD_GROUPS_AFT_UPD")) .HasKey(group => group.Guid); modelBuilder.Entity() .ToTable(tb => tb.HasTrigger("TBDD_MODULE_AFT_UPD")); modelBuilder.Entity(); modelBuilder.Entity() .ToTable(tb => tb.HasTrigger("TBDD_USER_REPRESENTATION_AFT_UPD")); base.OnModelCreating(modelBuilder); } } }