24 lines
631 B
C#
24 lines
631 B
C#
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Security_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class SECURITY_STO_RAPPDbContext:DbContext
|
|
{
|
|
/// <summary></summary>
|
|
public DbSet<Sto_Rapp>? StoRapp { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public SECURITY_STO_RAPPDbContext(DbContextOptions<SECURITY_STO_RAPPDbContext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
/// <summary></summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Sto_Rapp>().ToView("API_STO_RAPP");
|
|
}
|
|
}
|
|
}
|