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}"; }
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")); }