Esempio n. 1
0
        public static async Task UndoLesson(DataServiceRestClient client)
        {
            await client.DeleteMeasurementsByUuid(new[] { Measurement.Uuid });

            //The server can be configured to allow or disallow deleting of parts with measurements

            await client.DeleteCharacteristics(new[] { Characteristic.Uuid });

            await client.DeleteParts(new[] { Part.Uuid });

            await client.DeleteAttributeDefinitions(EntityDto.Measurement, new[] { MeasurementAttributeDefinition.Key });

            await client.DeleteAttributeDefinitions(EntityDto.Value, new[] { ValueAttributeDefinition.Key });
        }