Esempio n. 1
0
        private IExportTable GetTableExportTask(string path, bool remote)
        {
            var source = new SourceTableQuery()
            {
                Dataset = new Jhu.Graywulf.Schema.SqlServer.SqlServerDataset(Jhu.Graywulf.Test.Constants.TestDatasetName, Jhu.Graywulf.Test.AppSettings.IOTestConnectionString),
                Query = "SELECT * FROM SampleData"
            };

            var destination = new DelimitedTextDataFile()
            {
                Uri = Util.UriConverter.FromFilePath(path)
            };

            IExportTable te = null;
            if (remote)
            {
                te = RemoteServiceHelper.CreateObject<IExportTable>(Test.Constants.Localhost);
            }
            else
            {
                te = new ExportTable();
            }

            te.Source = source;
            te.Destination = destination;

            return te;
        }
Esempio n. 2
0
 public ExportTable(ExportTable old)
 {
     CopyMembers(old);
 }
Esempio n. 3
0
 private void CopyMembers(ExportTable old)
 {
     this.source = old.source;
     this.destination = old.destination;
 }
Esempio n. 4
0
 private void CopyMembers(ExportTable old)
 {
     this.source      = old.source;
     this.destination = old.destination;
 }
Esempio n. 5
0
 public ExportTable(ExportTable old)
 {
     CopyMembers(old);
 }