protected override esDynamicQuery GetDynamicQuery() { if (query == null) { query = new OMAMFundPricesQuery(); InitQuery(query); } return(query); }
/// <summary> /// Used to custom load a Join query. /// Returns true if at least one record was loaded. /// </summary> /// <remarks> /// Provides support for InnerJoin, LeftJoin, /// RightJoin, and FullJoin. You must provide an alias /// for each query when instantiating them. /// <code> /// 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); /// </code> /// <code lang="vbnet"> /// 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) /// </code> /// </remarks> /// <param name="query">The query object instance name.</param> /// <returns>True if at least one record was loaded.</returns> public bool Load(OMAMFundPricesQuery query) { this.query = query; base.InitQuery(this.query); return(Query.Load()); }