コード例 #1
0
        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));
        }
コード例 #2
0
 private void TrySave(long sequence)
 {
     using (var connection = this.factory.OpenConnection(this.connectionString))
         using (var command = connection.CreateCommand(SqlStatement.FormatWith(sequence)))
             command.ExecuteNonQuery();
 }