35 lines
858 B
C#
35 lines
858 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace GeradoresService.DAL;
|
|
|
|
public partial class GeradoresContext : DbContext
|
|
{
|
|
public GeradoresContext()
|
|
{
|
|
}
|
|
|
|
public GeradoresContext(DbContextOptions<GeradoresContext> options)
|
|
: base(options)
|
|
{
|
|
}
|
|
|
|
public virtual DbSet<Geradore> Geradores { get; set; }
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Geradore>(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);
|
|
}
|