24 lines
688 B
C#
24 lines
688 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Marrocco_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class MARRO_RAPP_NEWDbContext : DbContext
|
|
{
|
|
/// <summary></summary>
|
|
public DbSet<Rapp_New>? Rapps { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public MARRO_RAPP_NEWDbContext(DbContextOptions<MARRO_RAPP_NEWDbContext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
/// <summary></summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
//modelBuilder.Entity<Rapp_New>().ToView("API_RAPP_NEW");
|
|
modelBuilder.Entity<Rapp_New>().ToTable("RAPP_NEW");
|
|
}
|
|
}
|
|
}
|