Beispiel #1
0
        public void CreateInboxTable()
        {
            using (var connection = _connectionProvider.GetConnection())
            {
                _tableName = $"[command_{_tableName}]";
                var createTableSql = SqlInboxBuilder.GetDDL(_tableName);

                connection.Open();
                using (var command = connection.CreateCommand())
                {
                    command.CommandText = createTableSql;
                    command.ExecuteNonQuery();
                }
            }
        }
Beispiel #2
0
        public void CreateInboxTable()
        {
            using (var connection = new SqlConnection(_sqlSettings.TestsBrighterConnectionString))
            {
                _tableName = $"[command_{_tableName}]";
                var createTableSql = SqlInboxBuilder.GetDDL(_tableName);

                connection.Open();
                using (var command = connection.CreateCommand())
                {
                    command.CommandText = createTableSql;
                    command.ExecuteNonQuery();
                }
            }
        }