private ResolvedTable GetResolvedTable(JObject jObject) { ResolvedTable resolvedTable = new ResolvedTable(); JToken datasetJToken; JToken linkedServiceJToken; if (jObject.TryGetValue(TableToken, StringComparison.OrdinalIgnoreCase, out datasetJToken)) { Core.Models.Dataset internalDataset = Core.DataFactoryManagementClient.DeserializeInternalDatasetJson(datasetJToken.ToString()); resolvedTable.Dataset = this.datasetConverter.ToWrapperType(internalDataset); } if (jObject.TryGetValue(LinkedServiceToken, StringComparison.OrdinalIgnoreCase, out linkedServiceJToken)) { Core.Models.LinkedService internalLinkedService = Core.DataFactoryManagementClient.DeserializeInternalLinkedServiceJson(linkedServiceJToken.ToString()); resolvedTable.LinkedService = linkedServiceConverter.ToWrapperType(internalLinkedService); } return(resolvedTable); }
private ResolvedTable GetResolvedTable(JObject jObject) { ResolvedTable resolvedTable = new ResolvedTable(); JToken tableJToken; JToken linkedServiceJToken; if (jObject.TryGetValue(TableToken, StringComparison.OrdinalIgnoreCase, out tableJToken)) { Core.Models.Table internalTable = Core.DataFactoryManagementClient.DeserializeInternalTableJson(tableJToken.ToString()); resolvedTable.Table = tableConverter.ToWrapperType(internalTable); } if (jObject.TryGetValue(LinkedServiceToken, StringComparison.OrdinalIgnoreCase, out linkedServiceJToken)) { Core.Models.LinkedService internalLinkedService = Core.DataFactoryManagementClient.DeserializeInternalLinkedServiceJson(linkedServiceJToken.ToString()); resolvedTable.LinkedService = linkedServiceConverter.ToWrapperType(internalLinkedService); } return resolvedTable; }