Exemplo n.º 1
0
        public static async Task UndoLesson(DataServiceRestClient client)
        {
            //Delete the catalogs first, since deleting attributes which are used by catalogs will cause an error
            await client.DeleteCatalogs(new[] { MachineCatalog.Uuid });

            await client.DeleteAttributeDefinitions(EntityDto.Catalog, new[] { MachineName.Key, MachineNumber.Key, MachineVendor.Key });
        }
Exemplo n.º 2
0
        public static async Task UndoLesson(DataServiceRestClient client)
        {
            //Delete attributes
            await client.DeleteAttributeDefinitions(Entity.Part, new[] { AttributeDefinition.Key });

            await client.DeleteAttributeDefinitions(Entity.Characteristic, new[] { CatalogAttributeDefinition.Key });

            await client.DeleteAttributeDefinitions(Entity.Catalog, new[] { CatalogColumnAttributeDefinition.Key });

            //Delete catalogs
            await client.DeleteCatalogs(new[] { Catalog.Uuid });
        }