21 lines
556 B
C#
21 lines
556 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiSoftway.Models.Gesa_DbContext
|
|
{
|
|
public class GESA_SBR_ORD_DbContext: DbContext
|
|
{
|
|
public DbSet<Sbr_ord>? Cons { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public GESA_SBR_ORD_DbContext(DbContextOptions<GESA_SBR_ORD_DbContext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
/// <summary></summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Sbr_ord>().ToView("API_BROGLIACCIO");
|
|
}
|
|
}
|
|
}
|