/// <summary> /// Retrieves the data using only the primary key ID. Ex.: "Select * from MyTable where id=1" /// </summary> /// <returns>The class filled if found.</returns> public virtual OrdersInfo GetValueByID(int OrderID) { motor.OpenConnection(); OrdersInfo value = OrdersDAO.GetValueByID(OrderID); if (this.closeConnectionWhenFinish) { motor.CloseConnection(); } return(value); }