SQLINQ Class Library  (April 2015)
Using SQLINQ to transform UML to C#
Assets.SQLINQ.SQLite.Patterns.LazyLoadChildren< CHILDCLASS, MASTERCLASS, CHILDTABLE > Class Template Reference

Provides lazy loading abilities on children of a relationship. More...

Inheritance diagram for Assets.SQLINQ.SQLite.Patterns.LazyLoadChildren< CHILDCLASS, MASTERCLASS, CHILDTABLE >:

Public Member Functions

 LazyLoadChildren (MASTERCLASS aMaster, string aQueryFieldOnChildTable)
 Initializes a new instance of the LazyLoadChildren class. More...
 
int IndexOf (CHILDCLASS item)
 
void Insert (int index, CHILDCLASS item)
 
void RemoveAt (int index)
 
void Add (CHILDCLASS item)
 
void Clear ()
 
bool Contains (CHILDCLASS item)
 
void CopyTo (CHILDCLASS[] array, int arrayIndex)
 
bool Remove (CHILDCLASS item)
 
IEnumerator< CHILDCLASS > GetEnumerator ()
 

Properties

bool hasChildren [get]
 Return true if it has children. More...
 
CHILDCLASS this[int index] [get, set]
 
int Count [get]
 
bool IsReadOnly [get]
 

Events

OperationInjection< MASTERCLASS, CHILDCLASS > AfterAdd
 Method to call when an element is added or inserted into the list More...
 

Detailed Description

Provides lazy loading abilities on children of a relationship.

Type Constraints
CHILDCLASS :BaseClass 
MASTERCLASS :BaseClass 
CHILDTABLE :IBaseTable 
CHILDTABLE :new() 

Constructor & Destructor Documentation

Assets.SQLINQ.SQLite.Patterns.LazyLoadChildren< CHILDCLASS, MASTERCLASS, CHILDTABLE >.LazyLoadChildren ( MASTERCLASS  aMaster,
string  aQueryFieldOnChildTable 
)

Initializes a new instance of the LazyLoadChildren class.

Parameters
aMasterA master.
aQueryFieldOnChildTableA query field on child table.

Property Documentation

bool Assets.SQLINQ.SQLite.Patterns.LazyLoadChildren< CHILDCLASS, MASTERCLASS, CHILDTABLE >.hasChildren
get

Return true if it has children.

true if has children; otherwise, false.

Event Documentation

OperationInjection<MASTERCLASS,CHILDCLASS> Assets.SQLINQ.SQLite.Patterns.LazyLoadChildren< CHILDCLASS, MASTERCLASS, CHILDTABLE >.AfterAdd

Method to call when an element is added or inserted into the list