db context articoli
This commit is contained in:
parent
e833f24fbd
commit
16fd7fd075
@ -1,16 +1,19 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ApiPolo.Models.VT_dbcontext
|
||||
{
|
||||
public class VT_ARTICOLI_TABLE_DbContext : DbContext
|
||||
{
|
||||
|
||||
public DbSet<Articoli> Articoli { get; set; }
|
||||
|
||||
|
||||
public VT_ARTICOLI_TABLE_DbContext(DbContextOptions<VT_ARTICOLI_TABLE_DbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<Articoli> Articoli { get; set; }
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Articoli>().ToTable("Articoli");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user