Class OEMSDBContext
Entity Framework database context for the OEMS (Organization Event Management System).
Inheritance
OEMSDBContext
Assembly: OEMS.Core.dll
Syntax
public class OEMSDBContext : DbContext, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable, IResettableService, IDisposable, IAsyncDisposable
Constructors
OEMSDBContext(DbContextOptions<OEMSDBContext>)
Initializes a new instance of the OEMSDBContext class.
Declaration
public OEMSDBContext(DbContextOptions<OEMSDBContext> options)
Parameters
Properties
EmailTemplates
Declaration
public DbSet<EmailTemplate> EmailTemplates { get; set; }
Property Value
EventCategories
Declaration
public DbSet<EventCategory> EventCategories { get; set; }
Property Value
EventFiles
Declaration
public DbSet<EventFile> EventFiles { get; set; }
Property Value
EventParticipations
Declaration
public DbSet<EventParticipation> EventParticipations { get; set; }
Property Value
EventProcessSteps
Declaration
public DbSet<EventProcessStep> EventProcessSteps { get; set; }
Property Value
EventProcesses
Declaration
public DbSet<EventProcess> EventProcesses { get; set; }
Property Value
EventTemplates
Declaration
public DbSet<EventTemplate> EventTemplates { get; set; }
Property Value
Events
Declaration
public DbSet<Event> Events { get; set; }
Property Value
Feedbacks
Declaration
public DbSet<Feedback> Feedbacks { get; set; }
Property Value
Files
Declaration
public DbSet<File> Files { get; set; }
Property Value
GroupUsers
Declaration
public DbSet<GroupUser> GroupUsers { get; set; }
Property Value
Groups
Declaration
public DbSet<Group> Groups { get; set; }
Property Value
Locations
Declaration
public DbSet<Location> Locations { get; set; }
Property Value
OrganizationUsers
Declaration
public DbSet<OrganizationUser> OrganizationUsers { get; set; }
Property Value
Organizations
Gets or sets the database set for Organization entities.
Declaration
public DbSet<Organization> Organizations { get; set; }
Property Value
Type |
Description |
DbSet<Organization> |
The collection of organizations in the database.
|
PasswordResetTokens
Declaration
public DbSet<PasswordResetToken> PasswordResetTokens { get; set; }
Property Value
ProcessStepFiles
Declaration
public DbSet<ProcessStepFile> ProcessStepFiles { get; set; }
Property Value
ProcessStepTemplates
Declaration
public DbSet<ProcessStepTemplate> ProcessStepTemplates { get; set; }
Property Value
ProcessTemplates
Declaration
public DbSet<ProcessTemplate> ProcessTemplates { get; set; }
Property Value
RefreshTokens
Declaration
public DbSet<RefreshToken> RefreshTokens { get; set; }
Property Value
UserRegistrationTokens
Declaration
public DbSet<UserRegistrationToken> UserRegistrationTokens { get; set; }
Property Value
Users
Declaration
public DbSet<User> Users { get; set; }
Property Value
Methods
GetContextOptions()
Gets the context options for creating new instances of this context.
Declaration
public DbContextOptions<OEMSDBContext> GetContextOptions()
Returns
OnModelCreating(ModelBuilder)
Override this method to further configure the model that was discovered by convention from the entity types
exposed in DbSet<TEntity> properties on your derived context. The resulting model may be cached
and re-used for subsequent instances of your derived context.
Declaration
protected override void OnModelCreating(ModelBuilder modelBuilder)
Parameters
Type |
Name |
Description |
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.
|
Overrides
Implements