SQLINQ Class Library
(April 2015)
Using SQLINQ to transform UML to C#
|
Contains the lowest level object which has an OID associated with it. More...
Public Member Functions | |
BaseClass (int aOID) | |
abstract ValidationResult | Save () |
This saves this object back into the database. More... | |
virtual ValidationResult | Validate () |
Override this method to incorporate validation logic into your objects More... | |
virtual void | Delete () |
Marks this instance for Deletion. More... | |
Properties | |
int | OID [get, set] |
The Object Identifier of the object. OID <= 0 is an object that has not been persisted. More... | |
bool | IsDirty [get, set] |
An identifier to indicate that the value of the object has been modified and needs to be written back to the database. The order you update, insert or delete your objects in your code is the same order your objects are written in a UnitOfWork. Therefore, proper sequencing of your code will correct issues related to orphans caused by inserts and deletes in the same unit. See Repository.Commit() for more information. More... | |
bool | isDelete [get] |
Returns true if this instance is flagged for deletion. More... | |
bool | isInsert [get] |
Returns true if this instance is new and not yet persisted in the database. More... | |
bool | isUpdate [get] |
Returns true if this instance is an existing instance. More... | |
Contains the lowest level object which has an OID associated with it.
|
virtual |
Marks this instance for Deletion.
|
pure virtual |
This saves this object back into the database.
|
virtual |
Override this method to incorporate validation logic into your objects
|
get |
Returns true if this instance is flagged for deletion.
|
getset |
An identifier to indicate that the value of the object has been modified and needs to be written back to the database. The order you update, insert or delete your objects in your code is the same order your objects are written in a UnitOfWork. Therefore, proper sequencing of your code will correct issues related to orphans caused by inserts and deletes in the same unit. See Repository.Commit() for more information.
|
get |
Returns true if this instance is new and not yet persisted in the database.
|
get |
Returns true if this instance is an existing instance.
|
getset |
The Object Identifier of the object. OID <= 0 is an object that has not been persisted.