private ICopyTable GetTableCopy(string tableName, bool remote) { ICopyTable q = null; if (remote) { q = RemoteServiceHelper.CreateObject <ICopyTable>(Test.Constants.Localhost); } else { q = new CopyTable(); } var ds = new Jhu.Graywulf.Schema.SqlServer.SqlServerDataset(Jhu.Graywulf.Test.Constants.TestDatasetName, Jhu.Graywulf.Test.AppSettings.IOTestConnectionString) { IsMutable = true }; var source = new SourceTableQuery() { Dataset = ds, Query = "SELECT 1 AS one, 2 AS two, 3 AS three" }; q.Source = new SourceTableQuery[] { source }; var destination = new Jhu.Graywulf.Schema.Table() { Dataset = ds, SchemaName = "dbo", TableName = tableName }; q.Destination = new Schema.Table[] { destination }; q.Options = TableInitializationOptions.Create; return(q); }
private ICopyTable GetTableCopy(string tableName, bool remote) { ICopyTable q = null; if (remote) { q = RemoteServiceHelper.CreateObject<ICopyTable>(Test.Constants.Localhost); } else { q = new CopyTable(); } var ds = new Jhu.Graywulf.Schema.SqlServer.SqlServerDataset(Jhu.Graywulf.Test.Constants.TestDatasetName, Jhu.Graywulf.Test.AppSettings.IOTestConnectionString) { IsMutable = true }; var source = new SourceTableQuery() { Dataset = ds, Query = "SELECT 1 AS one, 2 AS two, 3 AS three" }; q.Source = new SourceTableQuery[] { source }; var destination = new Jhu.Graywulf.Schema.Table() { Dataset = ds, SchemaName = "dbo", TableName = tableName }; q.Destination = new Schema.Table[] { destination }; q.Options = TableInitializationOptions.Create; return q; }
private void CopyMembers(CopyTable old) { this.source = old.source; this.destination = old.destination; }
public CopyTable(CopyTable old) { CopyMembers(old); }