Skip to content
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.

Commit

Permalink
Deprecated the Convert___FromInt methods
Browse files Browse the repository at this point in the history
The UmbracoContext properties can be used to retrieve items from Umbraco.
  • Loading branch information
leekelleher committed Feb 10, 2017
1 parent 0a13fcf commit 142768e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ protected DatabaseContext DatabaseContext
/// <returns>
/// An <see cref="T:System.Object"/> that represents the converted value.
/// </returns>
[Obsolete("This method will be removed from the next version of Ditto. Please use one of the built-in UmbracoContext.ContentCache.", false)]
protected virtual object ConvertContentFromInt(int id, Type targetType, CultureInfo culture)
{
if (id <= 0)
Expand All @@ -200,6 +201,7 @@ protected virtual object ConvertContentFromInt(int id, Type targetType, CultureI
/// <returns>
/// An <see cref="T:System.Object"/> that represents the converted value.
/// </returns>
[Obsolete("This method will be removed from the next version of Ditto. Please use one of the built-in UmbracoContext.MediaCache.", false)]
protected virtual object ConvertMediaFromInt(int id, Type targetType, CultureInfo culture)
{
if (id <= 0)
Expand Down Expand Up @@ -230,6 +232,7 @@ protected virtual object ConvertMediaFromInt(int id, Type targetType, CultureInf
/// <returns>
/// An <see cref="T:System.Object"/> that represents the converted value.
/// </returns>
[Obsolete("This method will be removed from the next version of Ditto. Please use one of the built-in MembershipHelper.", false)]
protected virtual object ConvertMemberFromInt(int id, Type targetType, CultureInfo culture)
{
if (id <= 0)
Expand Down

0 comments on commit 142768e

Please sign in to comment.