Class CatalogEntryRowExtensions

Inheritance
System.Object
CatalogEntryRowExtensions
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: Mediachase.Commerce.Extensions
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public static class CatalogEntryRowExtensions

Methods

EntryEndDate(CatalogEntryDto.CatalogEntryRow, String)

Get entry end date in the specific language.

Declaration
public static DateTime EntryEndDate(this CatalogEntryDto.CatalogEntryRow catalogEntryRow, string language)
Parameters
Type Name Description
CatalogEntryDto.CatalogEntryRow catalogEntryRow

The catalog entry row.

System.String language

The language.

Returns
Type Description
System.DateTime

EntryStartDate(CatalogEntryDto.CatalogEntryRow, String)

Get entry start date in the specific language.

Declaration
public static DateTime EntryStartDate(this CatalogEntryDto.CatalogEntryRow catalogEntryRow, string language)
Parameters
Type Name Description
CatalogEntryDto.CatalogEntryRow catalogEntryRow

The catalog entry row.

System.String language

The language.

Returns
Type Description
System.DateTime

IsEntryAvailable(CatalogEntryDto.CatalogEntryRow)

Determines whether the specified catalog entry row is available (is active, startdate and enddate are correct)

Declaration
public static bool IsEntryAvailable(this CatalogEntryDto.CatalogEntryRow catalogEntryRow)
Parameters
Type Name Description
CatalogEntryDto.CatalogEntryRow catalogEntryRow

The catalog entry row.

Returns
Type Description
System.Boolean

true if the specified catalog entry row is available; otherwise, false.

IsEntryAvailable(CatalogEntryDto.CatalogEntryRow, String)

Determines whether the specified catalog entry row is available (is published, startdate and enddate are correct) in the specific language.

Declaration
public static bool IsEntryAvailable(this CatalogEntryDto.CatalogEntryRow catalogEntryRow, string language)
Parameters
Type Name Description
CatalogEntryDto.CatalogEntryRow catalogEntryRow

The catalog entry row.

System.String language

The language.

Returns
Type Description
System.Boolean

true if the specified catalog entry row is available; otherwise, false.

IsEntryPublished(CatalogEntryDto.CatalogEntryRow, MetaObject)

Checks if the entry is published based on the rows's active status and the published field in the meta object.

Declaration
public static bool IsEntryPublished(this CatalogEntryDto.CatalogEntryRow row, MetaObject metaObject)
Parameters
Type Name Description
CatalogEntryDto.CatalogEntryRow row

The entry row.

MetaObject metaObject

The meta object.

Returns
Type Description
System.Boolean

true if the entry is published, otherwise false.

IsEntryPublished(CatalogEntryDto.CatalogEntryRow, String)

Checks if the entry is published in the specific language.

Declaration
public static bool IsEntryPublished(this CatalogEntryDto.CatalogEntryRow row, string language)
Parameters
Type Name Description
CatalogEntryDto.CatalogEntryRow row

The entry row.

System.String language

The language to check if the entry is published.

Returns
Type Description
System.Boolean

true if the entry is published in this language, otherwise false.