Insert() public méthode

public Insert ( long timestamp, string moduleName, string tag ) : void
timestamp long
moduleName string
tag string
Résultat void
        public void Update(IScheduledMigrationMetadata metadata, IDbConnection connection, IDbTransaction transaction, IDbCommandExecutor commandExecutor)
        {
            Debug.Assert(!(metadata is BootstrapMetadata));

            if (metadata.Direction == MigrationDirection.Up)
            {
                _history.Insert(metadata.Timestamp, metadata.ModuleName, metadata.Tag);
            }
            else
            {
                Debug.Assert(metadata.Direction == MigrationDirection.Down);
                _history.Delete(metadata.Timestamp, metadata.ModuleName);
            }

            StoreChanges(connection, transaction, commandExecutor);
        }
        public void Update(IMigrationStepMetadata metadata, IDbConnection connection, IDbTransaction transaction, IDbCommandExecutor commandExecutor)
        {
            foreach (IMigrationMetadata migrationMetadata in metadata.Migrations)
            {
                Debug.Assert(migrationMetadata.ModuleName == metadata.ModuleName, "The migration module name must correspond to the module name of the scheduled migration step.");
                if (metadata.Direction == MigrationDirection.Up)
                {
                    _history.Insert(migrationMetadata.Timestamp, metadata.ModuleName, migrationMetadata.Tag);
                }
                else
                {
                    Debug.Assert(metadata.Direction == MigrationDirection.Down);
                    _history.Delete(migrationMetadata.Timestamp, metadata.ModuleName);
                }
            }

            StoreChanges(connection, transaction, commandExecutor);
        }