Click or drag to resize
SimpleDataClass Class
Simple DataClass object.
Inheritance Hierarchy
SystemObject
  CMS.DataEngineSimpleDataClass

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
[SerializableAttribute]
public class SimpleDataClass : IDataClass, 
	IAdvancedDataContainer, IDataContainer, ISimpleDataContainer, ISerializable

The SimpleDataClass type exposes the following members.

Constructors
  NameDescription
Public methodSimpleDataClass Obsolete.
Empty constructor.
Protected methodSimpleDataClass(Boolean)
Internally visible constructor
Public methodSimpleDataClass(SerializationInfo, StreamingContext)
Constructor for deserialization.
Top
Methods
  NameDescription
Public methodClone
Clones the object.
Public methodContainsColumn
Returns true if the object contains specified column.
Public methodCopyDataTo
Copies the object data to another object.
Public methodCopyOriginalDataTo
Copies the data of the DataClass object to another.
Public methodDataChanged
Returns true if the object changed.
Public methodDelete
Deletes current record.
Public methodDelete(Boolean)
Deletes current record.
Protected methodEnsureOriginalData
Ensures the object original data to store the object state.
Public methodGetDataRow
Gets the class Data row.
Public methodGetDataSet
Gets the DataSet from the object data.
Public methodGetObjectData
Gets object data.
Public methodGetOriginalValue(Int32)
Returns the original value of column.
Public methodGetOriginalValue(String)
Returns the original value of column.
Public methodGetValue(Int32)
Gets the object value.
Public methodGetValue(String)
Gets the object value.
Public methodChangedColumns
Returns list of column names whose values were changed.
Protected methodCheckTargetClass
Checks if target data class matches this data class
Public methodInit
Initializes an instance of data class after created by empty constructor
Public methodInsert
Inserts current record in the database.
Public methodInsert(Boolean)
Inserts current record in the database.
Public methodIsEmpty
Returns true if the object is empty.
Public methodItemChanged(Int32)
Returns true if the item on specified column index changed.
Public methodItemChanged(String)
Returns true if the item on specified column name changed.
Public methodLoadData(DataRow)
Loads the object data from given DataRow.
Public methodLoadData(Int32)
Loads the object data by the given primary key value
Public methodLoadData(Object)
Loads the object data form the given array
Public methodLoadData(IDataContainer)
Loads the object data from given data container.
Public methodLoadMissingData
Loads the missing object data from given DataRow.
Public methodMakeComplete
Makes the object data complete.
Public methodNullMissingData
Loads the null values into the missing fields.
Public methodResetChanges
Resets the object changes and keeps the new values as unchanged.
Public methodRevertChanges
Reverts the object changes to the original values.
Protected methodSelectData
Loads data row of the current class with specified value of column (typically ID).
Protected methodSetData
Sets the specific data.
Public methodSetValue(Int32, Object)
Sets the object value.
Public methodSetValue(String, Object)
Sets the object value.
Public methodTryGetValue
Returns value of column.
Public methodUpdate
Updates current record.
Public methodUpsert
Updates or inserts the current record.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodCopyTo
Copies the data of specified columns of the source object to the target object.
(Defined by DataExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodCheckRequiredColumns
Returns true if given list of columns do not have null values in the object
(Defined by DataExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToJSON
Returns JSON representation of current instance of IDataContainer.
(Defined by DataExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToXML
Returns XML representation of current instance of IDataContainer.
(Defined by DataExtensions.)
Top
Fields
  NameDescription
Protected fieldmConnection
General connection object used to access data.
Protected fieldmData
Object data.
Protected fieldmOriginalData
Object original data.
Protected fieldmStructureInfo
Class structure info.
Top
Properties
  NameDescription
Public propertyAllowPartialUpdate
If true, the object allows partial updates. When ID of the object is set, the object does a full update.
Public propertyClassName
Object class name.
Public propertyColumnNames
Column names.
Public propertyColumnsCount
Number of the object columns.
Public propertyData
Object data.
Public propertyHasChanged
Returns true if the object changed.
Public propertyID
Object ID.
Public propertyIDColumn
ID column.
Public propertyIsComplete
Returns true if the object is complete (has all columns).
Public propertyItemInt32
Column indexer, gets or sets the value in specified column index.
Public propertyItemString
Column indexer, gets or sets the value in specified column name.
Public propertyStructureInfo
Class structure info.
Public propertyTrackChanges
If true, the object tracks changes to its values
Public propertyUseOriginalData
If true, original data is used instead of the actual data.
Top
See Also