public CopyDataset ( string srcDatasourceName, string srcDatasetName, string destDatasetName ) : bool | ||
srcDatasourceName | string | 源数据源名称,必设参数。 |
srcDatasetName | string | 源数据集名称,必设参数。 |
destDatasetName | string | 目标数据集名称,必设参数。 |
return | bool |
public void CopyDatasetTest() { Data data = new Data("http://" + ip + ":8090/iserver/services/data-world/rest"); bool result = data.CopyDataset("World", "Countries", "CountriesCopy"); Assert.IsTrue(result); DatasetInfo getResult = data.GetDatasetInfo("World", "CountriesCopy"); Assert.IsNotNull(getResult); bool deleteResult = data.DeleteDataset("World", "CountriesCopy"); Assert.IsTrue(deleteResult); }