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 });
        }
        public static async Task UndoLesson(DataServiceRestClient client)
        {
            await client.DeleteParts(new[] { Part.Uuid });

            await client.DeleteCharacteristics(new[] { Characteristic.Uuid, Child.Uuid });
        }
Esempio n. 3
0
 public static async Task UndoLesson(DataServiceRestClient client, RawDataServiceRestClient rawClient)
 {
     await client.DeleteParts(new[] { Part.Uuid });
 }