Class CatalogEntryRowExtensions
Inheritance
Inherited Members
Namespace: Mediachase.Commerce.Extensions
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
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 |
EvaluateItemAssetChange(CatalogEntryDto.CatalogEntryRow)
Checks if the entry has any change in CatalogItemAsset.
Declaration
public static bool EvaluateItemAssetChange(this CatalogEntryDto.CatalogEntryRow row)
Parameters
Type | Name | Description |
---|---|---|
CatalogEntryDto.CatalogEntryRow | row | The entry row need to check. |
Returns
Type | Description |
---|---|
System.Boolean |
|
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 |
|
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 |
|
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 |
|
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 |
|