Example #1
0
        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);
            }
        }
Example #2
0
        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);
            }
        }
Example #3
0
 public DimFile(DimFolder folder, string fileName)
 {
     this.Parent = folder;
     this.FileName = Path.GetFileName(fileName);
 }
Example #4
0
 public DimFile(DimFolder folder, string fileName)
 {
     this.Parent   = folder;
     this.FileName = Path.GetFileName(fileName);
 }