Docker + Jenkfins File + v0.1
This commit is contained in:
13
GeradoresService/DAL/Geradore.cs
Normal file
13
GeradoresService/DAL/Geradore.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GeradoresService.DAL;
|
||||
|
||||
public partial class Geradore
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public int? Tipo { get; set; }
|
||||
|
||||
public string? Valor { get; set; }
|
||||
}
|
||||
34
GeradoresService/DAL/GeradoresContext.cs
Normal file
34
GeradoresService/DAL/GeradoresContext.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user