SimpleDataClass MembersKentico 8.0 API Reference
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.
Back to 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 methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodGetDataRow
Gets the class Data row.
Public methodGetDataSet
Gets the DataSet from the object data.
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodGetObjectData
Gets object data.
Public methodGetOriginalValue(Int32)
Returns the original value of column.
Public methodGetOriginalValue(String)
Returns the original value of column.
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
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.
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
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 methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodTryGetValue
Returns value of column.
Public methodUpdate
Updates current record.
Back to Top
Extension Methods

  NameDescription
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.)
Back to 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.
Back to Top
Properties

  NameDescription
Public propertyAllowPartialUpdate
If true, the object allows partial updates.
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 propertyItem Int32 
Column indexer, gets or sets the value in specified column index.
Public propertyItem String 
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.
Back to Top
See Also