The TableJoinAttribute indicates that this collection's table should be joined with another. This function is useful in optimising database loading speeds by allowing multiple tables to be joined into one data set. The resultant data set can then be used to load objects from the associated tables avoiding subsequent SQL calls. For a complete example, see the demonstration program. To further customer the subset (i.e. make it conditional) simply override the TableJoins function and do not specify a TableJoinAttribute.Namespace: DatabaseObjects
Assembly: DatabaseObjects (in DatabaseObjects.dll) Version: 184.108.40.206
<TableJoin("MainProductID", "Products", "ProductID")> Public Class Customers ...