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: 3.8.1.0

Syntax

C#
public class TableJoinAttribute : Attribute
Visual Basic
Public Class TableJoinAttribute _
	Inherits Attribute
Visual C++
public ref class TableJoinAttribute : public Attribute

Examples

CopyC#
<TableJoin("MainProductID", "Products", "ProductID")>
Public Class Customers
    ...

Inheritance Hierarchy

System..::..Object
  System..::..Attribute
    DatabaseObjects..::..TableJoinAttribute

See Also