Added obsoletion methods for extension methods to be removed in Umbraco 16 (#18394)

* Added obsoletion methods for extension methods to be removed in Umbraco 16.

* Updated obsolete messages to reference Umbraco 17

* Fix typo

---------

Co-authored-by: mole <nikolajlauridsen@protonmail.ch>
This commit is contained in:
Andy Butland
2025-02-24 13:27:04 +01:00
committed by GitHub
parent 6b50797693
commit 70be31b8f8
12 changed files with 22 additions and 27 deletions

View File

@@ -21,6 +21,7 @@ public static class DataTableExtensions
/// This has been migrated from the Node class and uses proper locking now. It is now used by the Node class and the
/// DynamicPublishedContent extensions for legacy reasons.
/// </remarks>
[Obsolete("This no longer has a use in Umbraco and so will be removed in Umbraco 17.")]
public static DataTable GenerateDataTable(
string tableAlias,
Func<string, IEnumerable<KeyValuePair<string, string>>> getHeaders,
@@ -60,6 +61,7 @@ public static class DataTableExtensions
/// <remarks>
/// This is for legacy code, I didn't want to go creating custom classes for these
/// </remarks>
[Obsolete("This no longer has a use in Umbraco and so will be removed in Umbraco 17.")]
public static List<Tuple<IEnumerable<KeyValuePair<string, object?>>, IEnumerable<KeyValuePair<string, object?>>>>
CreateTableData() =>
new List<Tuple<IEnumerable<KeyValuePair<string, object?>>, IEnumerable<KeyValuePair<string, object?>>>>();
@@ -73,6 +75,7 @@ public static class DataTableExtensions
/// <remarks>
/// This is for legacy code, I didn't want to go creating custom classes for these
/// </remarks>
[Obsolete("This no longer has a use in Umbraco and so will be removed in Umbraco 17.")]
public static void AddRowData(
List<Tuple<IEnumerable<KeyValuePair<string, object?>>, IEnumerable<KeyValuePair<string, object?>>>> rowData,
IEnumerable<KeyValuePair<string, object?>> standardVals,