Beispiel #1
0
 /// <summary>
 /// The implementation of the fetch method. In this method, fetch the data for the scope. Use the TrackQuery methods to make sure
 /// all entities fetched in this method are tracked by the scope.
 /// </summary>
 /// <param name="fetchMethodParameters">The fetch method parameters.</param>
 /// <returns>
 /// true if the fetch was successful, false otherwise
 /// </returns>
 protected override bool FetchDataImpl(params object[] fetchMethodParameters)
 {
     // fetch it from service.
     _customer = _dalService.GetCustomerWithFullOrders(fetchMethodParameters[0] as string) as CustomerEntity;
     // ... and attach it. All entities reachable from _customer are attached as well.
     if (_customer != null)
     {
         Attach(_customer);
     }
     return(_customer != null);
 }