Class CatalogEntryRowExtensions
Inheritance
Inherited Members
Namespace: EPiServer.Commerce.Extensions
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
[Obsolete("This class is no longer used. To using entry row's extension methods, use Mediachase.Commerce.Extensions.CatalogEntryRowExtensions instead. Will remain at least until January 2017.")]
public static class CatalogEntryRowExtensions
Methods
EndDate(CatalogEntryDto.CatalogEntryRow, String)
Get entry end date in the specific language
.
Declaration
public static DateTime EndDate(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 |
IsAvailable(CatalogEntryDto.CatalogEntryRow)
Determines whether the specified catalog entry row is available (is active, startdate and enddate are correct)
Declaration
public static bool IsAvailable(this CatalogEntryDto.CatalogEntryRow catalogEntryRow)
Parameters
Type | Name | Description |
---|---|---|
CatalogEntryDto.CatalogEntryRow | catalogEntryRow | The catalog entry row. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsAvailable(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 IsAvailable(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 |
|
IsPublished(CatalogEntryDto.CatalogEntryRow, String)
Checks if the entry is published in the specific language
.
Declaration
public static bool IsPublished(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 |
|
StartDate(CatalogEntryDto.CatalogEntryRow, String)
Get entry start date in the specific language
.
Declaration
public static DateTime StartDate(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 |