BizBlox
DataObject Class
Namespacespixolut.BizBloxDataObject
BizBlox
DataObject is the foundation of a BizBlox architecture. Actual data classes inherit from this. Use the Builder tool to auto generate these inherited classes.
Declaration Syntax
C#Visual BasicVisual C++
public abstract class DataObject : MarshalByRefObject
Public MustInherit Class DataObject _
	Inherits MarshalByRefObject
public ref class DataObject abstract : public MarshalByRefObject
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
DataObject()()()
Create a new object which has a insert context The 'context' is determined by the initialisation of the object if you initialise without a GUID then the object doesn't map to a row and therefore will require data properties set. Setting the ID property of a DataObject will not change load, save or delete. it is actually just passive READ ONLY.

DataObject(Guid)
Create an object from a database lookup - has an update context

DataObject(Guid, Boolean)

DataObject(DOCollection%, Int32)
DataObject(DataRow)
DataObject(DataRow, array<DOSelection>[]()[])
AcceptTO(Object)
Accept a transfer object (which inherits from DOTO) to populate this DataObject

CommitUpdateContext
Copy(Object)
copy all properties to a new object of the same type (except the UID)

Delete(DOTransaction)
Delete the object from the database.

Delete()()()
Delete the object from the database.

ExistsInTable()()()
Does this object exist in the table it maps to?

GetLinkedColumn(String)
GetLinkedColumn(DOSelection)
GetLinkedTable(DataObject)
GetLinkedTable(String)
GetPropertyHelper()()()
GetTO(Type)
Get a data transfer object of the type defined by [toType] and populate it from the data contained in the DataObject

IsNull(DateTime)
Determine if a value is EQUIVALENT to a null.

IsNull(Guid)
Determine if a value is EQUIVALENT to a null.

Load()()()
Load the object from the database. The DataObject's UID must already be set. Performs a SELECT * and loads all columns.

Load(array<Enum>[]()[])
Loads only the specified columns of a DataObject. The DataObject's UID must already be set. This is an alternative to the default Load, which loads all columns (SELECT *). The UID column is always loaded.

m_objDA
Save()()()
Commit the object (or its changes) to the database

Save(DOTransaction)
Commit the object (or its changes) to the database

TableName()()()
Touch(Int32)
all subclassed property SET methods *must* call this subroutine to flag that the object has changed and needs to be committed to the database.

Uid()()() Obsolete.
UidColumn()()()
UIDColumnName()()() Obsolete.
Get the column name of the Primary Key (UniqueID)

Remarks
The DataObject is designed to be inherited based on a simple pattern as explained in exampleclient.vb code. This object manages persistance through load and save methods. Remember: the constructor is lazy and will only hit the database when explicitly requested.
Inheritance Hierarchy

Assembly: pixolut.BizBlox (Module: pixolut.BizBlox) Version: 1.8.5.0