/// <summary> /// Delete this instance. /// </summary> /// <returns>The <see cref="T:FuelSDK.DeleteReturn"/> object..</returns> public DeleteReturn Delete() { GetDataExtensionCustomerKey(); ETDataExtensionRow row = this; row.CustomerKey = DataExtensionCustomerKey; row.Keys = (ColumnValues != null ? ColumnValues.Select(x => new APIProperty { Name = x.Key, Value = x.Value }).ToArray() : null); row.ColumnValues = null; row.DataExtensionName = null; row.DataExtensionCustomerKey = null; return(new DeleteReturn(row)); }
/// <summary> /// Patch this instance. /// </summary> /// <returns>The <see cref="T:FuelSDK.PatchReturn"/> object..</returns> public PatchReturn Patch() { if (ColumnValues == null) { throw new ArgumentNullException("ColumnValues"); } GetDataExtensionCustomerKey(); ETDataExtensionRow row = this; row.CustomerKey = DataExtensionCustomerKey; row.Properties = ColumnValues.Select(x => new APIProperty { Name = x.Key, Value = x.Value }).ToArray(); row.ColumnValues = null; row.DataExtensionName = null; row.DataExtensionCustomerKey = null; return(new PatchReturn(row)); }