Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceChangingEventArgs.cs / 1 / EntityDataSourceChangingEventArgs.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner objsdev
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;
namespace System.Web.UI.WebControls
{
public class EntityDataSourceChangingEventArgs : System.ComponentModel.CancelEventArgs
{
private readonly ObjectContext _context;
private readonly Exception _exception = null;
private bool _exceptionHandled = false;
private readonly object _entity = null;
internal EntityDataSourceChangingEventArgs(ObjectContext context, object entity)
{
_context = context;
_entity = entity;
}
internal EntityDataSourceChangingEventArgs(Exception exception)
{
_exception = exception;
}
public Exception Exception
{
get { return _exception; }
}
public bool ExceptionHandled
{
get { return _exceptionHandled; }
set { _exceptionHandled = value; }
}
public object Entity
{
get { return _entity; }
}
public ObjectContext Context
{
get { return _context; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner objsdev
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;
namespace System.Web.UI.WebControls
{
public class EntityDataSourceChangingEventArgs : System.ComponentModel.CancelEventArgs
{
private readonly ObjectContext _context;
private readonly Exception _exception = null;
private bool _exceptionHandled = false;
private readonly object _entity = null;
internal EntityDataSourceChangingEventArgs(ObjectContext context, object entity)
{
_context = context;
_entity = entity;
}
internal EntityDataSourceChangingEventArgs(Exception exception)
{
_exception = exception;
}
public Exception Exception
{
get { return _exception; }
}
public bool ExceptionHandled
{
get { return _exceptionHandled; }
set { _exceptionHandled = value; }
}
public object Entity
{
get { return _entity; }
}
public ObjectContext Context
{
get { return _context; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HitTestWithPointDrawingContextWalker.cs
- PeerToPeerException.cs
- AudioLevelUpdatedEventArgs.cs
- BamlLocalizableResourceKey.cs
- IQueryable.cs
- UidPropertyAttribute.cs
- ColumnTypeConverter.cs
- WmlTextBoxAdapter.cs
- InstanceDataCollection.cs
- MemoryMappedViewStream.cs
- TraceHandler.cs
- LinearKeyFrames.cs
- ChannelListenerBase.cs
- XmlDataSource.cs
- pingexception.cs
- MetadataItemEmitter.cs
- _NativeSSPI.cs
- ToolTipAutomationPeer.cs
- PropertyTabAttribute.cs
- sqlcontext.cs
- _FixedSizeReader.cs
- OracleRowUpdatingEventArgs.cs
- ProxyElement.cs
- ToolStripItemClickedEventArgs.cs
- HttpWebResponse.cs
- CodeTypeReferenceExpression.cs
- TimeStampChecker.cs
- CodeTypeDeclarationCollection.cs
- TextWriterTraceListener.cs
- FormatException.cs
- TagMapCollection.cs
- SettingsPropertyValueCollection.cs
- IdleTimeoutMonitor.cs
- NullableBoolConverter.cs
- ActivityCodeDomSerializer.cs
- ModelPropertyImpl.cs
- ContentPlaceHolder.cs
- RoleServiceManager.cs
- GuidConverter.cs
- AdapterUtil.cs
- EventPropertyMap.cs
- RequestCachingSection.cs
- ExternalException.cs
- OrderByQueryOptionExpression.cs
- TransportSecurityProtocolFactory.cs
- ViewBox.cs
- CommentAction.cs
- Light.cs
- TransactionFlowProperty.cs
- TopClause.cs
- BuildProviderCollection.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- FixUp.cs
- ToolStripGripRenderEventArgs.cs
- ToolStripSystemRenderer.cs
- SR.Designer.cs
- InstancePersistenceEvent.cs
- DataColumnMappingCollection.cs
- EmptyElement.cs
- BrowserCapabilitiesCodeGenerator.cs
- TdsParameterSetter.cs
- XamlBrushSerializer.cs
- DiscoveryClientChannelBase.cs
- TemplateField.cs
- _OSSOCK.cs
- EdmFunction.cs
- StorageTypeMapping.cs
- WebSysDescriptionAttribute.cs
- PaperSource.cs
- ResourceDictionary.cs
- CalendarDataBindingHandler.cs
- ComNativeDescriptor.cs
- IndexOutOfRangeException.cs
- XmlElementList.cs
- XmlSortKey.cs
- RelationalExpressions.cs
- ActionMessageFilter.cs
- Matrix3DConverter.cs
- TextureBrush.cs
- TickBar.cs
- KeyedCollection.cs
- PageTheme.cs
- RegisteredHiddenField.cs
- StringDictionaryEditor.cs
- AbstractSvcMapFileLoader.cs
- DrawingState.cs
- UserControlParser.cs
- SafeNativeMethods.cs
- HttpPostClientProtocol.cs
- ViewStateModeByIdAttribute.cs
- FormsAuthentication.cs
- InternalBufferManager.cs
- QilDataSource.cs
- ContextMenu.cs
- MarkupWriter.cs
- CapabilitiesState.cs
- RepeatInfo.cs
- GridSplitter.cs
- CategoryAttribute.cs
- CultureInfo.cs