Search Results for

    Show / Hide Table of Contents

    Class OEMSDBContext

    Entity Framework database context for the OEMS (Organization Event Management System).

    Inheritance
    object
    DbContext
    OEMSDBContext
    Implements
    IInfrastructure<IServiceProvider>
    IDbContextDependencies
    IDbSetCache
    IDbContextPoolable
    IResettableService
    IDisposable
    IAsyncDisposable
    Inherited Members
    DbContext.Set<TEntity>()
    DbContext.Set<TEntity>(string)
    DbContext.OnConfiguring(DbContextOptionsBuilder)
    DbContext.ConfigureConventions(ModelConfigurationBuilder)
    DbContext.SaveChanges()
    DbContext.SaveChanges(bool)
    DbContext.SaveChangesAsync(CancellationToken)
    DbContext.SaveChangesAsync(bool, CancellationToken)
    DbContext.Dispose()
    DbContext.DisposeAsync()
    DbContext.Entry<TEntity>(TEntity)
    DbContext.Entry(object)
    DbContext.Add<TEntity>(TEntity)
    DbContext.AddAsync<TEntity>(TEntity, CancellationToken)
    DbContext.Attach<TEntity>(TEntity)
    DbContext.Update<TEntity>(TEntity)
    DbContext.Remove<TEntity>(TEntity)
    DbContext.Add(object)
    DbContext.AddAsync(object, CancellationToken)
    DbContext.Attach(object)
    DbContext.Update(object)
    DbContext.Remove(object)
    DbContext.AddRange(params object[])
    DbContext.AddRangeAsync(params object[])
    DbContext.AttachRange(params object[])
    DbContext.UpdateRange(params object[])
    DbContext.RemoveRange(params object[])
    DbContext.AddRange(IEnumerable<object>)
    DbContext.AddRangeAsync(IEnumerable<object>, CancellationToken)
    DbContext.AttachRange(IEnumerable<object>)
    DbContext.UpdateRange(IEnumerable<object>)
    DbContext.RemoveRange(IEnumerable<object>)
    DbContext.Find(Type, params object[])
    DbContext.FindAsync(Type, params object[])
    DbContext.FindAsync(Type, object[], CancellationToken)
    DbContext.Find<TEntity>(params object[])
    DbContext.FindAsync<TEntity>(params object[])
    DbContext.FindAsync<TEntity>(object[], CancellationToken)
    DbContext.FromExpression<TResult>(Expression<Func<IQueryable<TResult>>>)
    DbContext.Database
    DbContext.ChangeTracker
    DbContext.Model
    DbContext.ContextId
    DbContext.SavingChanges
    DbContext.SavedChanges
    DbContext.SaveChangesFailed
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OEMS.Core.Infrastructure
    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
    Type Name Description
    DbContextOptions<OEMSDBContext> options

    The options to configure the database context

    Properties

    EmailTemplates

    Declaration
    public DbSet<EmailTemplate> EmailTemplates { get; set; }
    Property Value
    Type Description
    DbSet<EmailTemplate>

    EventCategories

    Declaration
    public DbSet<EventCategory> EventCategories { get; set; }
    Property Value
    Type Description
    DbSet<EventCategory>

    EventFiles

    Declaration
    public DbSet<EventFile> EventFiles { get; set; }
    Property Value
    Type Description
    DbSet<EventFile>

    EventParticipations

    Declaration
    public DbSet<EventParticipation> EventParticipations { get; set; }
    Property Value
    Type Description
    DbSet<EventParticipation>

    EventProcessSteps

    Declaration
    public DbSet<EventProcessStep> EventProcessSteps { get; set; }
    Property Value
    Type Description
    DbSet<EventProcessStep>

    EventProcesses

    Declaration
    public DbSet<EventProcess> EventProcesses { get; set; }
    Property Value
    Type Description
    DbSet<EventProcess>

    EventTemplates

    Declaration
    public DbSet<EventTemplate> EventTemplates { get; set; }
    Property Value
    Type Description
    DbSet<EventTemplate>

    Events

    Declaration
    public DbSet<Event> Events { get; set; }
    Property Value
    Type Description
    DbSet<Event>

    Feedbacks

    Declaration
    public DbSet<Feedback> Feedbacks { get; set; }
    Property Value
    Type Description
    DbSet<Feedback>

    Files

    Declaration
    public DbSet<File> Files { get; set; }
    Property Value
    Type Description
    DbSet<File>

    GroupUsers

    Declaration
    public DbSet<GroupUser> GroupUsers { get; set; }
    Property Value
    Type Description
    DbSet<GroupUser>

    Groups

    Declaration
    public DbSet<Group> Groups { get; set; }
    Property Value
    Type Description
    DbSet<Group>

    Locations

    Declaration
    public DbSet<Location> Locations { get; set; }
    Property Value
    Type Description
    DbSet<Location>

    OrganizationUsers

    Declaration
    public DbSet<OrganizationUser> OrganizationUsers { get; set; }
    Property Value
    Type Description
    DbSet<OrganizationUser>

    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
    Type Description
    DbSet<PasswordResetToken>

    ProcessStepFiles

    Declaration
    public DbSet<ProcessStepFile> ProcessStepFiles { get; set; }
    Property Value
    Type Description
    DbSet<ProcessStepFile>

    ProcessStepTemplates

    Declaration
    public DbSet<ProcessStepTemplate> ProcessStepTemplates { get; set; }
    Property Value
    Type Description
    DbSet<ProcessStepTemplate>

    ProcessTemplates

    Declaration
    public DbSet<ProcessTemplate> ProcessTemplates { get; set; }
    Property Value
    Type Description
    DbSet<ProcessTemplate>

    RefreshTokens

    Declaration
    public DbSet<RefreshToken> RefreshTokens { get; set; }
    Property Value
    Type Description
    DbSet<RefreshToken>

    UserRegistrationTokens

    Declaration
    public DbSet<UserRegistrationToken> UserRegistrationTokens { get; set; }
    Property Value
    Type Description
    DbSet<UserRegistrationToken>

    Users

    Declaration
    public DbSet<User> Users { get; set; }
    Property Value
    Type Description
    DbSet<User>

    Methods

    GetContextOptions()

    Gets the context options for creating new instances of this context.

    Declaration
    public DbContextOptions<OEMSDBContext> GetContextOptions()
    Returns
    Type Description
    DbContextOptions<OEMSDBContext>

    The database context options used to configure this context

    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
    DbContext.OnModelCreating(ModelBuilder)
    Remarks

    If a model is explicitly set on the options for this context (via UseModel(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.

    Implements

    IInfrastructure<T>
    IDbContextDependencies
    IDbSetCache
    IDbContextPoolable
    IResettableService
    IDisposable
    IAsyncDisposable
    In this article
    Back to top Generated by DocFX