• Documentation
  • API Reference
  • REST API & UIs
Show / Hide Table of Contents
  • MailHole.Api
    • Program
    • Startup
    • StartupExtensions
  • MailHole.Api.Auth
    • AuthorizeAdminsAttribute
    • AuthorizeManagersAttribute
    • AuthorizeUsersAttribute
    • AuthSeeder
    • MailHoleRoles
    • PolicyNames
  • MailHole.Api.Controllers
    • AccountsController
    • AttachementsController
    • MailsController
    • ReceiversController
  • MailHole.Api.Hangfire
    • HangfireAuthFilter
  • MailHole.Api.Models
    • CountResult
  • MailHole.Api.Models.Auth
    • AuthRequest
  • MailHole.Api.Models.Validation
    • ValidationRequest
  • MailHole.Api.UnitTests
    • UnitTest1
  • MailHole.Common
    • CleanupJob
    • MailHoleConstants
  • MailHole.Common.Auth
    • CertUtil
  • MailHole.Common.Extensions
    • ConfigExtensions
  • MailHole.Common.HangfireExtensions
    • HangfireActivator
  • MailHole.Common.Model
    • AttachementInfo
    • ReceivedMail
    • Receiver
  • MailHole.Common.Model.Auth
    • EcParamsDto
    • EcParamsDtoExtensions
  • MailHole.Common.Model.Options
    • AuthOptions
    • HangfireOptions
    • MinioOptions
    • RedisOptions
    • SmtpOptions
  • MailHole.Common.Tests.Auth
    • CertUtilTest
  • MailHole.Db
    • MailHoleDbContext
    • MailHoleDbContextFactory
  • MailHole.Db.Entities
    • Attachement
    • Mail
  • MailHole.Db.Entities.Auth
    • MailHoleRole
    • MailHoleUser
  • MailHole.Db.Migrations
    • Initial
  • MailHole.SmtpListener
    • Program
  • MailHole.SmtpListener.Extensions
    • ModelExtensions
  • MailHole.SmtpListener.IntegrationTests
    • RedisMinioStorageJobTest
  • MailHole.SmtpListener.Jobs
    • RedisMinioStoreJob
  • MailHole.SmtpListener.Persistence
    • RedisMinioMailStore
  • MailHole.SmtpListener.UnitTests
    • UnitTest1

Class MailHoleDbContext

Inheritance
System.Object
Microsoft.EntityFrameworkCore.DbContext
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<MailHoleUser, System.String, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.String>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.String>>
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<MailHoleUser, MailHoleRole, System.String, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserRole<System.String>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.String>, Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.String>>
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<MailHoleUser, MailHoleRole, System.String>
MailHoleDbContext
Implements
System.IDisposable
Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<System.IServiceProvider>
Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies
Microsoft.EntityFrameworkCore.Internal.IDbSetCache
Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable
Inherited Members
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<MailHole.Db.Entities.Auth.MailHoleUser, MailHole.Db.Entities.Auth.MailHoleRole, System.String, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserRole<System.String>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.String>, Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.String>>.OnModelCreating(Microsoft.EntityFrameworkCore.ModelBuilder)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<MailHole.Db.Entities.Auth.MailHoleUser, MailHole.Db.Entities.Auth.MailHoleRole, System.String, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserRole<System.String>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.String>, Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.String>>.UserRoles
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<MailHole.Db.Entities.Auth.MailHoleUser, MailHole.Db.Entities.Auth.MailHoleRole, System.String, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserRole<System.String>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.String>, Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.String>>.Roles
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<MailHole.Db.Entities.Auth.MailHoleUser, MailHole.Db.Entities.Auth.MailHoleRole, System.String, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserRole<System.String>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.String>, Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.String>>.RoleClaims
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<MailHole.Db.Entities.Auth.MailHoleUser, System.String, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.String>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.String>>.OnModelCreating(Microsoft.EntityFrameworkCore.ModelBuilder)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<MailHole.Db.Entities.Auth.MailHoleUser, System.String, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.String>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.String>>.Users
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<MailHole.Db.Entities.Auth.MailHoleUser, System.String, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.String>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.String>>.UserClaims
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<MailHole.Db.Entities.Auth.MailHoleUser, System.String, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.String>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.String>>.UserLogins
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<MailHole.Db.Entities.Auth.MailHoleUser, System.String, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.String>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.String>>.UserTokens
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbSetCache.GetOrAddSet(Microsoft.EntityFrameworkCore.Internal.IDbSetSource, System.Type)
Microsoft.EntityFrameworkCore.DbContext.Set<TEntity>()
Microsoft.EntityFrameworkCore.DbContext.OnConfiguring(Microsoft.EntityFrameworkCore.DbContextOptionsBuilder)
Microsoft.EntityFrameworkCore.DbContext.SaveChanges()
Microsoft.EntityFrameworkCore.DbContext.SaveChanges(System.Boolean)
Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(System.Boolean, System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.SetPool(Microsoft.EntityFrameworkCore.Internal.IDbContextPool)
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.SnapshotConfiguration()
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.Resurrect(Microsoft.EntityFrameworkCore.Internal.DbContextPoolConfigurationSnapshot)
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.ResetState()
Microsoft.EntityFrameworkCore.DbContext.Dispose()
Microsoft.EntityFrameworkCore.DbContext.Entry<TEntity>(TEntity)
Microsoft.EntityFrameworkCore.DbContext.Entry(System.Object)
Microsoft.EntityFrameworkCore.DbContext.Add<TEntity>(TEntity)
Microsoft.EntityFrameworkCore.DbContext.AddAsync<TEntity>(TEntity, System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.Attach<TEntity>(TEntity)
Microsoft.EntityFrameworkCore.DbContext.Update<TEntity>(TEntity)
Microsoft.EntityFrameworkCore.DbContext.Remove<TEntity>(TEntity)
Microsoft.EntityFrameworkCore.DbContext.Add(System.Object)
Microsoft.EntityFrameworkCore.DbContext.AddAsync(System.Object, System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.Attach(System.Object)
Microsoft.EntityFrameworkCore.DbContext.Update(System.Object)
Microsoft.EntityFrameworkCore.DbContext.Remove(System.Object)
Microsoft.EntityFrameworkCore.DbContext.AddRange(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.AddRangeAsync(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.AttachRange(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.UpdateRange(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.RemoveRange(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.AddRange(System.Collections.Generic.IEnumerable<System.Object>)
Microsoft.EntityFrameworkCore.DbContext.AddRangeAsync(System.Collections.Generic.IEnumerable<System.Object>, System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.AttachRange(System.Collections.Generic.IEnumerable<System.Object>)
Microsoft.EntityFrameworkCore.DbContext.UpdateRange(System.Collections.Generic.IEnumerable<System.Object>)
Microsoft.EntityFrameworkCore.DbContext.RemoveRange(System.Collections.Generic.IEnumerable<System.Object>)
Microsoft.EntityFrameworkCore.DbContext.Find(System.Type, System.Object[])
Microsoft.EntityFrameworkCore.DbContext.FindAsync(System.Type, System.Object[])
Microsoft.EntityFrameworkCore.DbContext.FindAsync(System.Type, System.Object[], System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.Find<TEntity>(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.FindAsync<TEntity>(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.FindAsync<TEntity>(System.Object[], System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.Database
Microsoft.EntityFrameworkCore.DbContext.ChangeTracker
Microsoft.EntityFrameworkCore.DbContext.Model
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.SetSource
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.EntityFinderSource
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.QueryProvider
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.StateManager
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.ChangeDetector
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.EntityGraphAttacher
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.UpdateLogger
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.InfrastructureLogger
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<System.IServiceProvider>.Instance
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MailHole.Db
Assembly: MailHole.Db.dll
Syntax
public class MailHoleDbContext : IdentityDbContext<MailHoleUser, MailHoleRole, string>, IDisposable, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable

Constructors

| Improve this Doc View Source

MailHoleDbContext(DbContextOptions)

Declaration
public MailHoleDbContext(DbContextOptions options)
Parameters
Type Name Description
Microsoft.EntityFrameworkCore.DbContextOptions options

Properties

| Improve this Doc View Source

Mails

Declaration
public DbSet<Mail> Mails { get; set; }
Property Value
Type Description
Microsoft.EntityFrameworkCore.DbSet<Mail>

Methods

| Improve this Doc View Source

OnModelCreating(ModelBuilder)

Declaration
protected override void OnModelCreating(ModelBuilder builder)
Parameters
Type Name Description
Microsoft.EntityFrameworkCore.ModelBuilder builder
Overrides
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<MailHole.Db.Entities.Auth.MailHoleUser, MailHole.Db.Entities.Auth.MailHoleRole, System.String, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserRole<System.String>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.String>, Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.String>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.String>>.OnModelCreating(Microsoft.EntityFrameworkCore.ModelBuilder)

Implements

System.IDisposable
Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<T>
Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies
Microsoft.EntityFrameworkCore.Internal.IDbSetCache
Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX