public JournalTableConfig(Configuration.Config config) { var localcfg = config.GetConfig("tables.journal") .SafeWithFallback(config) //For easier compatibility with old cfgs. .SafeWithFallback(Configuration.Config.Empty); ColumnNames = new JournalTableColumnNames(config); MetadataColumnNames = new MetadataTableColumnNames(config); TableName = localcfg.GetString("table-name", "journal"); MetadataTableName = localcfg.GetString("metadata-table-name", "journal_metadata"); SchemaName = localcfg.GetString("schema-name", null); AutoInitialize = localcfg.GetBoolean("auto-init", false); WarnOnAutoInitializeFail = localcfg.GetBoolean("warn-on-auto-init-fail", true); }
protected bool Equals(MetadataTableColumnNames other) { return(PersistenceId == other.PersistenceId && SequenceNumber == other.SequenceNumber); }