28 lines
852 B
C#
28 lines
852 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Ferrari_dbcontext
|
|
{
|
|
/// <summary>FERRA_CHIAMATEDbContext</summary>
|
|
public class FERRA_PRESEDbContext : DbContext
|
|
{
|
|
/// <summary>FERRA_CHIAMATEDbContext</summary>
|
|
public DbSet<Prese>? Prese { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public FERRA_PRESEDbContext(DbContextOptions<FERRA_PRESEDbContext> options) : base(options)
|
|
{
|
|
}
|
|
/// <summary>A</summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Prese>().ToTable("PRESA");
|
|
modelBuilder.Entity<Prese>().HasKey(table => new {
|
|
table.picodazi,
|
|
table.pimpianto,
|
|
table.picodint,
|
|
table.pidatman
|
|
});
|
|
}
|
|
}
|
|
}
|