private BootstrapInfo TryLoad() { var statment = SqlStatement.FormatWith(this.duplicateWindow); using (var connection = this.factory.OpenConnection(this.connectionString)) using (var command = connection.CreateCommand(statment)) using (var reader = command.ExecuteReader()) return(this.Parse(reader)); }
private void TrySave(long sequence) { using (var connection = this.factory.OpenConnection(this.connectionString)) using (var command = connection.CreateCommand(SqlStatement.FormatWith(sequence))) command.ExecuteNonQuery(); }