Class EchoHubDbContext
public class EchoHubDbContext : DbContext, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable, IResettableService, IDisposable, IAsyncDisposable
- Inheritance
-
EchoHubDbContext
- Implements
- Inherited Members
Constructors
EchoHubDbContext(DbContextOptions<EchoHubDbContext>)
public EchoHubDbContext(DbContextOptions<EchoHubDbContext> options)
Parameters
optionsDbContextOptions<EchoHubDbContext>
Properties
Channels
public DbSet<Channel> Channels { get; }
Property Value
Messages
public DbSet<Message> Messages { get; }
Property Value
RefreshTokens
public DbSet<RefreshToken> RefreshTokens { get; }
Property Value
Users
public DbSet<User> Users { get; }
Property Value
Methods
OnConfiguring(DbContextOptionsBuilder)
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
Parameters
optionsBuilderDbContextOptionsBuilder
OnModelCreating(ModelBuilder)
protected override void OnModelCreating(ModelBuilder modelBuilder)
Parameters
modelBuilderModelBuilder