SQLINQ Class Library  (April 2015)
Using SQLINQ to transform UML to C#
Assets.SQLINQ.SQLite.Patterns.BaseClass Class Referenceabstract

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...
 

Detailed Description

Contains the lowest level object which has an OID associated with it.

Member Function Documentation

virtual void Assets.SQLINQ.SQLite.Patterns.BaseClass.Delete ( )
virtual

Marks this instance for Deletion.

abstract ValidationResult Assets.SQLINQ.SQLite.Patterns.BaseClass.Save ( )
pure virtual

This saves this object back into the database.

virtual ValidationResult Assets.SQLINQ.SQLite.Patterns.BaseClass.Validate ( )
virtual

Override this method to incorporate validation logic into your objects

Property Documentation

bool Assets.SQLINQ.SQLite.Patterns.BaseClass.isDelete
get

Returns true if this instance is flagged for deletion.

bool Assets.SQLINQ.SQLite.Patterns.BaseClass.IsDirty
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.

bool Assets.SQLINQ.SQLite.Patterns.BaseClass.isInsert
get

Returns true if this instance is new and not yet persisted in the database.

bool Assets.SQLINQ.SQLite.Patterns.BaseClass.isUpdate
get

Returns true if this instance is an existing instance.

int Assets.SQLINQ.SQLite.Patterns.BaseClass.OID
getset

The Object Identifier of the object. OID <= 0 is an object that has not been persisted.