public void WritePatch(string filename, bool withSchemas = true) { var patch = ToPatch(withSchemas); patch.WriteUpdateFile(filename); var dropFile = SchemaPatch.ToDropFileName(filename); patch.WriteRollbackFile(dropFile); }
public void WritePatch(string filename) { var patch = ToPatch(); var fileSystem = new FileSystem(); fileSystem.WriteStringToFile(filename, patch.UpdateDDL); var dropFile = SchemaPatch.ToDropFileName(filename); fileSystem.WriteStringToFile(dropFile, patch.RollbackDDL); }
public void WritePatch(string filename, bool withSchemas = true) { if (!Path.IsPathRooted(filename)) { filename = AppContext.BaseDirectory.AppendPath(filename); } var patch = ToPatch(withSchemas); patch.WriteUpdateFile(filename); var dropFile = SchemaPatch.ToDropFileName(filename); patch.WriteRollbackFile(dropFile); }