protected virtual void OnContextDisposing(LinqDataSourceDisposeEventArgs e)
 {
     if (ContextDisposing != null)
     {
         ContextDisposing(this, e);
     }
 }
        protected virtual void OnContextDisposing(LinqDataSourceDisposeEventArgs e)
        {
            EventHandler <LinqDataSourceDisposeEventArgs> handler = (EventHandler <LinqDataSourceDisposeEventArgs>)Events[EventContextDisposing];

            if (handler != null)
            {
                handler(this, e);
            }
        }
 protected override void DisposeContext(object dataContext)
 {
     if (dataContext != null)
     {
         LinqDataSourceDisposeEventArgs disposingEventArgs = new LinqDataSourceDisposeEventArgs(dataContext);
         OnContextDisposing(disposingEventArgs);
         if (!disposingEventArgs.Cancel)
         {
             base.DisposeContext(dataContext);
         }
     }
 }
		protected virtual void OnContextDisposing (LinqDataSourceDisposeEventArgs e)
		{
			if (ContextDisposing != null)
				ContextDisposing (this, e);
		}
 protected virtual void OnContextDisposing(LinqDataSourceDisposeEventArgs e) {
     EventHandler<LinqDataSourceDisposeEventArgs> handler = (EventHandler<LinqDataSourceDisposeEventArgs>)Events[EventContextDisposing];
     if (handler != null) {
         handler(this, e);
     }
 }
 protected override void DisposeContext(object dataContext) {
     if (dataContext != null) {
         LinqDataSourceDisposeEventArgs disposingEventArgs = new LinqDataSourceDisposeEventArgs(dataContext);
         OnContextDisposing(disposingEventArgs);
         if (!disposingEventArgs.Cancel) {
             base.DisposeContext(dataContext);
         }
     }
 }