Used to custom load a Join query.
Returns true if at least one row is loaded.
For an entity, an exception will be thrown
if more than one row is loaded.
| C# | Visual Basic |
public bool Load( EmployeesQuery query )
Public Function Load ( _ query As EmployeesQuery _ ) As Boolean
- query (EmployeesQuery)
- The query object instance name.
True if at least one record was loaded.
Provides support for InnerJoin, LeftJoin,
RightJoin, and FullJoin. You must provide an alias
for each query when instantiating them.
CopyC#
CopyVB.NET
EmployeeCollection collection = new EmployeeCollection(); EmployeeQuery emp = new EmployeeQuery("eq"); CustomerQuery cust = new CustomerQuery("cq"); emp.Select(emp.EmployeeID, emp.LastName, cust.CustomerName); emp.LeftJoin(cust).On(emp.EmployeeID == cust.StaffAssigned); collection.Load(emp);
Dim collection As New EmployeeCollection() Dim emp As New EmployeeQuery("eq") Dim cust As New CustomerQuery("cq") emp.Select(emp.EmployeeID, emp.LastName, cust.CustomerName) emp.LeftJoin(cust).On(emp.EmployeeID = cust.StaffAssigned) collection.Load(emp)
