22 lines
680 B
C#
22 lines
680 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models
|
|
{
|
|
/// <summary>ConfigurazioniDbContext</summary>
|
|
public class ConfigurazioniDbContext : DbContext
|
|
{
|
|
/// <summary>conf</summary>
|
|
public DbSet<Configurazioni>? conf { get; set; }
|
|
|
|
/// <summary>ConfigurazioniDbContext</summary>
|
|
public ConfigurazioniDbContext(DbContextOptions<ConfigurazioniDbContext> options) : base(options)
|
|
{
|
|
}
|
|
/// <summary>OnModelCreating</summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Configurazioni>().ToTable("Configurazioni");
|
|
}
|
|
}
|
|
}
|