Exemple #1
0
 public DataManager(string xml, string json)
 {
     optionManager    = new OptionManager(json, xml);
     dataOptions      = new DataManagerOptions();
     dataOptions      = optionManager.GetOptions <DataManagerOptions>();
     connectionString = $"Data Source={dataOptions.DataSource};" +
                        $"Initial Catalog={dataOptions.InitialCatalog};" +
                        $"Integrated Security={dataOptions.IntegratedSecurity}";
 }
Exemple #2
0
 public void SendFile(DataManagerOptions dataOptions)
 {
     File.Move(Path.Combine(dataOptions.FileDirectory, "information" + DateTime.Now.ToString("MM/dd/yyyy")
                            + ".xml"), Path.Combine(dataOptions.SourceDirectory, "information" +
                                                    DateTime.Now.ToString("MM/dd/yyyy") + ".xml"));
 }