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