/// <summary>
 /// Creates the inner provider object.
 /// </summary>
 /// <param name="dataServiceInstance">Data service instance.</param>
 /// <param name="dataSourceInstance">Data source instance.</param>
 private void CreateInnerProvider(object dataServiceInstance, object dataSourceInstance)
 {
     Debug.Assert(dataServiceInstance != null, "dataServiceInstance != null");
     Debug.Assert(dataSourceInstance != null, "dataSourceInstance != null");
     this.innerProvider = new ReflectionServiceProvider(dataServiceInstance, dataSourceInstance);
 }
 /// <summary>
 /// Disposes the current object.
 /// </summary>
 /// <param name="disposing">Whethere the call is coming from IDisposable interface.</param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         try
         {
             if (this.innerProvider != null)
             {
                 (this.innerProvider as IDisposable).Dispose();
             }
         }
         finally
         {
             this.innerProvider = null;
         }
     }
 }