using System; using System.Collections.Generic; using Microsoft.EntityFrameworkCore; namespace GeradoresService.DAL; public partial class GeradoresContext : DbContext { public GeradoresContext() { } public GeradoresContext(DbContextOptions options) : base(options) { } public virtual DbSet Geradores { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity(entity => { entity.HasKey(e => e.Id).HasName("PK__Geradore__3214EC2710D5AD88"); entity.Property(e => e.Id).HasColumnName("ID"); entity.Property(e => e.Valor).HasMaxLength(50); }); OnModelCreatingPartial(modelBuilder); } partial void OnModelCreatingPartial(ModelBuilder modelBuilder); }