Table of Contents

Interface IAdvancedDataContainer

Namespace
CMS.Base
Assembly
CMS.Base.dll

Data container with advanced functionality.

public interface IAdvancedDataContainer : IDataContainer, ISimpleDataContainer
Inherited Members
Extension Methods

Properties

HasChanged

Returns true if the object changed.

bool HasChanged { get; }

Property Value

bool

IsComplete

Returns true if the object is complete (has all columns).

bool IsComplete { get; }

Property Value

bool

Methods

ChangedColumns()

Returns list of column names which values were changed.

List<string> ChangedColumns()

Returns

List<string>

List of column names

DataChanged(string)

Returns true if the object changed.

bool DataChanged(string excludedColumns)

Parameters

excludedColumns string

List of columns excluded from change (separated by ';')

Returns

bool

GetOriginalValue(string)

Returns the original value of column.

object GetOriginalValue(string columnName)

Parameters

columnName string

Column name

Returns

object

ItemChanged(string)

Returns true if the item on specified column name changed.

bool ItemChanged(string columnName)

Parameters

columnName string

Column name

Returns

bool

MakeComplete(bool)

Makes the object data complete.

void MakeComplete(bool loadFromDb)

Parameters

loadFromDb bool

If true, the data to complete the object is loaded from database

ResetChanges()

Resets the object changes and keeps the new values as unchanged.

void ResetChanges()

RevertChanges()

Reverts the object changes to the original values.

void RevertChanges()