Class EchoHubDbContext
- Namespace
- EchoHub.Server.Data
- Assembly
- EchoHub.Server.dll
public class EchoHubDbContext : DbContext, IDisposable, IAsyncDisposable
- Inheritance
-
DbContext
EchoHubDbContext
- Implements
-
- Inherited Members
-
Constructors
EchoHubDbContext(DbContextOptions<EchoHubDbContext>)
public EchoHubDbContext(DbContextOptions<EchoHubDbContext> options)
Parameters
options DbContextOptions<EchoHubDbContext>
Properties
Attachments
public DbSet<Attachment> Attachments { get; }
Property Value
- DbSet<Attachment>
ChannelMemberships
public DbSet<ChannelMembership> ChannelMemberships { get; }
Property Value
- DbSet<ChannelMembership>
Channels
public DbSet<Channel> Channels { get; }
Property Value
- DbSet<Channel>
InviteCodes
public DbSet<InviteCode> InviteCodes { get; }
Property Value
- DbSet<InviteCode>
Messages
public DbSet<Message> Messages { get; }
Property Value
- DbSet<Message>
RefreshTokens
public DbSet<RefreshToken> RefreshTokens { get; }
Property Value
- DbSet<RefreshToken>
Users
public DbSet<User> Users { get; }
Property Value
- DbSet<User>
Methods
OnConfiguring(DbContextOptionsBuilder)
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
Parameters
optionsBuilder DbContextOptionsBuilder
OnModelCreating(ModelBuilder)
protected override void OnModelCreating(ModelBuilder modelBuilder)
Parameters
modelBuilder ModelBuilder