Skip to main content
Table of Contents

Class ReadModelRestoreOptions

Namespace
Stratara.EventSourcing.EntityFrameworkCore.ReadStore.Replay
Assembly
Stratara.EventSourcing.EntityFrameworkCore.dll

Settings of the PostgreSQL read-model preservation that AddReadModelRestore<TReadContext>() registers, bound to the ProjectionReplay:Restore configuration section.

[ExcludeFromCodeCoverage]
public sealed class ReadModelRestoreOptions
Inheritance
ReadModelRestoreOptions
Inherited Members
Extension Methods

Fields

SectionName

Configuration section name (ProjectionReplay:Restore) that hosts these options.

public const string SectionName = "ProjectionReplay:Restore"

Field Value

string

Properties

AdditionalTables

Gets or sets tables the read context does not map that the host's view truncator empties and that are therefore preserved as well, as schema.table or as table in the context's default schema.

public IList<string> AdditionalTables { get; set; }

Property Value

IList<string>

CommandTimeout

Gets or sets how long one statement of the preservation or the restoration may take. Copying a large read store takes as long as reading it; defaults to 30 minutes.

public TimeSpan CommandTimeout { get; set; }

Property Value

TimeSpan

ExcludedTables

Gets or sets tables the read context maps that a replay does not empty and that are therefore not preserved, as schema.table or as table in the context's default schema.

public IList<string> ExcludedTables { get; set; }

Property Value

IList<string>

Schema

Gets or sets the schema the preserved copies are kept in. Defaults to stratara_replay. The schema is created on first use, which needs the CREATE privilege on the database; create it beforehand where the read store's user does not have it.

public string Schema { get; set; }

Property Value

string