Class ClientDbContext
EF Core context of the local SQLite database.
Implements
Inherited Members
Namespace: Uniform.Matrix.Client.Storage
Assembly: Uniform.Matrix.Client.dll
Syntax
public sealed class ClientDbContext : DbContext, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable, IResettableService, IDisposable, IAsyncDisposable
Constructors
| Edit this page View SourceClientDbContext(DbContextOptions<ClientDbContext>)
Create a context with options.
Declaration
public ClientDbContext(DbContextOptions<ClientDbContext> options)
Parameters
| Type | Name | Description |
|---|---|---|
| DbContextOptions<ClientDbContext> | options |
Properties
| Edit this page View SourceAccounts
Session and syncs position.
Declaration
public DbSet<StoredAccount> Accounts { get; }
Property Value
| Type | Description |
|---|---|
| DbSet<StoredAccount> |
CryptoAccount
Encryption account of this device.
Declaration
public DbSet<CryptoAccountRow> CryptoAccount { get; }
Property Value
| Type | Description |
|---|---|
| DbSet<CryptoAccountRow> |
CryptoDeviceLists
Device lists of tracked users.
Declaration
public DbSet<CryptoDeviceListRow> CryptoDeviceLists { get; }
Property Value
| Type | Description |
|---|---|
| DbSet<CryptoDeviceListRow> |
CryptoInboundGroupSessions
Megolm sessions for decrypting.
Declaration
public DbSet<CryptoInboundGroupSessionRow> CryptoInboundGroupSessions { get; }
Property Value
| Type | Description |
|---|---|
| DbSet<CryptoInboundGroupSessionRow> |
CryptoOlmSessions
Olm sessions.
Declaration
public DbSet<CryptoOlmSessionRow> CryptoOlmSessions { get; }
Property Value
| Type | Description |
|---|---|
| DbSet<CryptoOlmSessionRow> |
CryptoOutboundGroupSessions
Megolm sessions for sending.
Declaration
public DbSet<CryptoOutboundGroupSessionRow> CryptoOutboundGroupSessions { get; }
Property Value
| Type | Description |
|---|---|
| DbSet<CryptoOutboundGroupSessionRow> |
CryptoValues
Named encryption values.
Declaration
public DbSet<CryptoValueRow> CryptoValues { get; }
Property Value
| Type | Description |
|---|---|
| DbSet<CryptoValueRow> |
Events
Received room events.
Declaration
public DbSet<StoredEvent> Events { get; }
Property Value
| Type | Description |
|---|---|
| DbSet<StoredEvent> |
Media
Downloaded media.
Declaration
public DbSet<StoredMedia> Media { get; }
Property Value
| Type | Description |
|---|---|
| DbSet<StoredMedia> |
Outbox
Locally written events awaiting delivery.
Declaration
public DbSet<OutboxMessage> Outbox { get; }
Property Value
| Type | Description |
|---|---|
| DbSet<OutboxMessage> |
Methods
| Edit this page View SourceOnModelCreating(ModelBuilder)
Configure keys, indexes and conversions.
Declaration
protected override void OnModelCreating(ModelBuilder modelBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| ModelBuilder | modelBuilder |