The signature of extension methods for obtaining related/child objects has changed
Tags:
In PluginContext.Operations, there are methods for obtaining related objects — for example, you can get the parent product group using PluginContext.Operations.TryGetParentByProduct(product). For convenience, these methods have paired extension methods to the input arguments (for example, product.TryGetParent(PluginContext.Operations)). Starting from V7, this call becomes simpler, you no longer need to specify PluginContext.Operations: product.TryGetParent().
The change affected the following methods:
TryGetSectionSchemaTryGetParent/TryGetParentGetSimpleModifiers/TryGetSimpleModifiersGetGroupModifiers/TryGetGroupModifiersGetIncludedInMenuSections/TryGetIncludedInMenuSectionsGetDisabledSizes/TryGetDisabledSizesGetTemplatedModifiersParams/TryGetTemplatedModifiersParamsGetChildProducts/TryGetChildProductsGetChildGroups/TryGetChildGroupsGetCommonSimpleModifiers/TryGetCommonSimpleModifiersGetCommonGroupModifiers/TryGetCommonGroupModifiersGetSplittableSimpleModifiers/TryGetSplittableSimpleModifiersGetSplittableGroupModifiers/TryGetSplittableGroupModifiers
Additionally, some Get/TryGet pairs have had Get methods removed that could return null:
GetSectionSchema(IRestaurantSection)GetParent(IProduct)GetParent(IProductGroup)