November Happy Hour will be moved to Thursday December 5th.

Class ContentModelMethods

Inheritance
System.Object
ContentModelMethods
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.DataAbstraction.RuntimeModel.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public static class ContentModelMethods

Fields

ContentTypeRepository

Declaration
public static Injected<IContentTypeRepository> ContentTypeRepository
Field Value
Type Description
Injected<IContentTypeRepository>

Methods

ConvertCategoryToString(CategoryList)

Declaration
public static CategoryList ConvertCategoryToString(CategoryList category)
Parameters
Type Name Description
CategoryList category
Returns
Type Description
CategoryList

ConvertContentReference(ContentReference)

Declaration
public static ContentReference ConvertContentReference(ContentReference contentReference)
Parameters
Type Name Description
ContentReference contentReference
Returns
Type Description
ContentReference

ConvertConvertReferenceWithDefault(ContentReference)

Declaration
public static ContentReference ConvertConvertReferenceWithDefault(ContentReference contentReference)
Parameters
Type Name Description
ContentReference contentReference
Returns
Type Description
ContentReference

ConvertCultureToString(CultureInfo)

Declaration
public static string ConvertCultureToString(CultureInfo culture)
Parameters
Type Name Description
System.Globalization.CultureInfo culture
Returns
Type Description
System.String

ConvertGuidToString(Guid)

Declaration
public static string ConvertGuidToString(Guid guid)
Parameters
Type Name Description
System.Guid guid
Returns
Type Description
System.String

ConvertIntToLinkType(Object)

Declaration
public static PageShortcutType ConvertIntToLinkType(object linkType)
Parameters
Type Name Description
System.Object linkType
Returns
Type Description
PageShortcutType

ConvertIntToPageType(Object)

Declaration
public static PageType ConvertIntToPageType(object pageTypeIdObject)
Parameters
Type Name Description
System.Object pageTypeIdObject
Returns
Type Description
PageType

ConvertIntToVersionStatus(Object)

Declaration
public static VersionStatus ConvertIntToVersionStatus(object status)
Parameters
Type Name Description
System.Object status
Returns
Type Description
VersionStatus

ConvertObjectToDateTime(Object)

Declaration
public static DateTime ConvertObjectToDateTime(object data)
Parameters
Type Name Description
System.Object data
Returns
Type Description
System.DateTime

ConvertPageTypeToInt(PageType)

Declaration
public static object ConvertPageTypeToInt(PageType pageType)
Parameters
Type Name Description
PageType pageType
Returns
Type Description
System.Object

ConvertStringToCulture(String)

Declaration
public static CultureInfo ConvertStringToCulture(string cultureName)
Parameters
Type Name Description
System.String cultureName
Returns
Type Description
System.Globalization.CultureInfo

ConvertStringToDefaultEmpty(String)

Declaration
public static string ConvertStringToDefaultEmpty(string data)
Parameters
Type Name Description
System.String data
Returns
Type Description
System.String

ConvertStringToGuid(String)

Declaration
public static Guid ConvertStringToGuid(string guidStr)
Parameters
Type Name Description
System.String guidStr
Returns
Type Description
System.Guid

GetValueOrDefault<T>(PropertyDataCollection, String, Boolean)

Declaration
public static T GetValueOrDefault<T>(PropertyDataCollection propertyDataCollection, string propertyName, bool defaultOnIsNull)
Parameters
Type Name Description
PropertyDataCollection propertyDataCollection
System.String propertyName
System.Boolean defaultOnIsNull
Returns
Type Description
T
Type Parameters
Name Description
T

HasLazyValue(PropertyDataCollection, String)

Declaration
public static bool HasLazyValue(PropertyDataCollection propertyDataCollection, string propertyName)
Parameters
Type Name Description
PropertyDataCollection propertyDataCollection
System.String propertyName
Returns
Type Description
System.Boolean

IsReadonlyAndDoesNotFetchData(PageData)

Declaration
public static bool IsReadonlyAndDoesNotFetchData(PageData page)
Parameters
Type Name Description
PageData page
Returns
Type Description
System.Boolean