Table of Contents

Class PortalDbContext

Namespace
SEBT.Portal.Infrastructure.Data
Assembly
SEBT.Portal.Infrastructure.dll

Database context for the SEBT Portal application.

public class PortalDbContext : DbContext
Inheritance
object
DbContext
PortalDbContext

Constructors

PortalDbContext(DbContextOptions<PortalDbContext>)

public PortalDbContext(DbContextOptions<PortalDbContext> options)

Parameters

options DbContextOptions<PortalDbContext>

Properties

CardReplacementRequests

Card replacement request records for cooldown enforcement.

public DbSet<CardReplacementRequestEntity> CardReplacementRequests { get; set; }

Property Value

DbSet<CardReplacementRequestEntity>

DeidentifiedChildResults

De-identified child result records associated with enrollment check submissions.

public DbSet<DeidentifiedChildResultEntity> DeidentifiedChildResults { get; set; }

Property Value

DbSet<DeidentifiedChildResultEntity>

DocVerificationChallenges

Document verification challenge records tracking individual verification attempts.

public DbSet<DocVerificationChallengeEntity> DocVerificationChallenges { get; set; }

Property Value

DbSet<DocVerificationChallengeEntity>

EnrollmentCheckSubmissions

De-identified enrollment check submission records for analytics.

public DbSet<EnrollmentCheckSubmissionEntity> EnrollmentCheckSubmissions { get; set; }

Property Value

DbSet<EnrollmentCheckSubmissionEntity>

UserOptIns

User opt-in records stored in the database.

public DbSet<UserOptInEntity> UserOptIns { get; set; }

Property Value

DbSet<UserOptInEntity>

Users

User records with ID proofing status stored in the database.

public DbSet<UserEntity> Users { get; set; }

Property Value

DbSet<UserEntity>

Methods

OnModelCreating(ModelBuilder)

Override this method to further configure the model that was discovered by convention from the entity types exposed in Microsoft.EntityFrameworkCore.DbSet<TEntity> properties on your derived context. The resulting model may be cached and re-used for subsequent instances of your derived context.

protected override void OnModelCreating(ModelBuilder modelBuilder)

Parameters

modelBuilder ModelBuilder

The builder being used to construct the model for this context. Databases (and other extensions) typically define extension methods on this object that allow you to configure aspects of the model that are specific to a given database.

Remarks

If a model is explicitly set on the options for this context (via Microsoft.EntityFrameworkCore.DbContextOptionsBuilder.UseModel(Microsoft.EntityFrameworkCore.Metadata.IModel)) then this method will not be run. However, it will still run when creating a compiled model.

See Modeling entity types and relationships for more information and examples.