public ConfigFile(bool defaultSettings = false) { if (defaultSettings) { this.MySqlPath = @"C:\Program Files\MySQL\MySQL Server 5.5\bin"; this.Patches = new DimFolder() { Path = @"\dim\patches", RunKind = RunKind.RunOnce }; this.Routines = new DimFolder() { Path = @"\dim\routines", RunKind = RunKind.RunIfChanged }; this.Baseline = new DimFolder() { Path = @"\dim\baseline", RunKind = RunKind.None }; var viewsFolder = new DimFolder() { Path = @"\dim\views", RunKind = RunKind.RunAlways }; var lookupFolder = new DimFolder() { Path = @"\dim\lookup-data", RunKind = RunKind.RunIfChanged }; this.CustomFolders = new List <DimFolder>(); this.CustomFolders.Add(viewsFolder); this.CustomFolders.Add(lookupFolder); } }
public ConfigFile(bool defaultSettings = false) { if(defaultSettings) { this.MySqlPath = @"C:\Program Files\MySQL\MySQL Server 5.5\bin"; this.Patches = new DimFolder() { Path = @"\dim\patches", RunKind = RunKind.RunOnce }; this.Routines = new DimFolder() { Path = @"\dim\routines", RunKind = RunKind.RunIfChanged }; this.Baseline = new DimFolder() { Path = @"\dim\baseline", RunKind = RunKind.None }; var viewsFolder = new DimFolder() { Path = @"\dim\views", RunKind = RunKind.RunAlways }; var lookupFolder = new DimFolder() { Path = @"\dim\lookup-data", RunKind = RunKind.RunIfChanged }; this.CustomFolders = new List<DimFolder>(); this.CustomFolders.Add(viewsFolder); this.CustomFolders.Add(lookupFolder); } }
public DimFile(DimFolder folder, string fileName) { this.Parent = folder; this.FileName = Path.GetFileName(fileName); }