protected override void ProcessRecord() { LogInitializer.Initialize(); string path = SourcePath; SolutionFolder sln = new SolutionFolder(new ScriptParserContext(path, searchPattern)); OracleDatabase db = new OracleDatabase() { SourceScript = true, Name = Name, }; var visitor = new ConvertScriptToModelVisitor(); if (this.Validators != null) { visitor.Validators.AddRange(this.Validators); } sln.Visit(visitor); // Map items in db FileInfo file = new FileInfo(OutputFilename); if (!file.Directory.Exists) { file.Directory.Create(); } db.WriteFile(file.FullName); base.WriteObject(db); base.ProcessRecord(); }