Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / Odbc / OdbcRowUpdatingEvent.cs / 1305376 / OdbcRowUpdatingEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- using System; using System.Data; using System.Data.Common; //DbDataAdapter using System.ComponentModel; //Component namespace System.Data.Odbc { ///////////////////////////////////////////////////////////////////////// // Event Handlers // ///////////////////////////////////////////////////////////////////////// public delegate void OdbcRowUpdatingEventHandler(object sender, OdbcRowUpdatingEventArgs e); public delegate void OdbcRowUpdatedEventHandler(object sender, OdbcRowUpdatedEventArgs e); ///////////////////////////////////////////////////////////////////////// // OdbcRowUpdatingEventArgs // ///////////////////////////////////////////////////////////////////////// public sealed class OdbcRowUpdatingEventArgs : RowUpdatingEventArgs { public OdbcRowUpdatingEventArgs(DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) : base(row, command, statementType, tableMapping) { } new public OdbcCommand Command { get { return (base.Command as OdbcCommand); } set { base.Command = value; } } override protected IDbCommand BaseCommand { get { return base.BaseCommand; } set { base.BaseCommand = (value as OdbcCommand); } } } ///////////////////////////////////////////////////////////////////////// // OdbcRowUpdatedEventArgs // ///////////////////////////////////////////////////////////////////////// public sealed class OdbcRowUpdatedEventArgs : RowUpdatedEventArgs { public OdbcRowUpdatedEventArgs(DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) : base(row, command, statementType, tableMapping) { } new public OdbcCommand Command { get { return(OdbcCommand) base.Command; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- using System; using System.Data; using System.Data.Common; //DbDataAdapter using System.ComponentModel; //Component namespace System.Data.Odbc { ///////////////////////////////////////////////////////////////////////// // Event Handlers // ///////////////////////////////////////////////////////////////////////// public delegate void OdbcRowUpdatingEventHandler(object sender, OdbcRowUpdatingEventArgs e); public delegate void OdbcRowUpdatedEventHandler(object sender, OdbcRowUpdatedEventArgs e); ///////////////////////////////////////////////////////////////////////// // OdbcRowUpdatingEventArgs // ///////////////////////////////////////////////////////////////////////// public sealed class OdbcRowUpdatingEventArgs : RowUpdatingEventArgs { public OdbcRowUpdatingEventArgs(DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) : base(row, command, statementType, tableMapping) { } new public OdbcCommand Command { get { return (base.Command as OdbcCommand); } set { base.Command = value; } } override protected IDbCommand BaseCommand { get { return base.BaseCommand; } set { base.BaseCommand = (value as OdbcCommand); } } } ///////////////////////////////////////////////////////////////////////// // OdbcRowUpdatedEventArgs // ///////////////////////////////////////////////////////////////////////// public sealed class OdbcRowUpdatedEventArgs : RowUpdatedEventArgs { public OdbcRowUpdatedEventArgs(DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) : base(row, command, statementType, tableMapping) { } new public OdbcCommand Command { get { return(OdbcCommand) base.Command; } } } } // 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
- BitmapEffectvisualstate.cs
- ApplicationServicesHostFactory.cs
- ToolStripItemCollection.cs
- EndPoint.cs
- PropertyBuilder.cs
- ScrollProviderWrapper.cs
- SelectionListComponentEditor.cs
- DataGridAddNewRow.cs
- InternalControlCollection.cs
- BackStopAuthenticationModule.cs
- HandlerMappingMemo.cs
- AssemblyBuilder.cs
- Array.cs
- TabControlCancelEvent.cs
- util.cs
- sitestring.cs
- ToolStripSystemRenderer.cs
- ConfigurationValidatorAttribute.cs
- ItemAutomationPeer.cs
- Pen.cs
- OleDbParameterCollection.cs
- CorrelationManager.cs
- Int32Collection.cs
- NativeMethods.cs
- Rfc2898DeriveBytes.cs
- ObjectCloneHelper.cs
- TypeDependencyAttribute.cs
- CharacterHit.cs
- EventLogPermissionHolder.cs
- WhiteSpaceTrimStringConverter.cs
- AVElementHelper.cs
- DockAndAnchorLayout.cs
- MaskedTextProvider.cs
- ContextMenu.cs
- Clause.cs
- Codec.cs
- LiteralDesigner.cs
- TextEditorTyping.cs
- TreeNodeStyleCollection.cs
- LogicalChannelCollection.cs
- StyleModeStack.cs
- ContainerCodeDomSerializer.cs
- ListViewDataItem.cs
- AsymmetricSignatureFormatter.cs
- MasterPageCodeDomTreeGenerator.cs
- SortedList.cs
- RegisteredExpandoAttribute.cs
- XmlExpressionDumper.cs
- UIElement3D.cs
- ApplicationDirectory.cs
- RandomNumberGenerator.cs
- ActivityStatusChangeEventArgs.cs
- MemoryPressure.cs
- DataPagerFieldCollection.cs
- XmlProcessingInstruction.cs
- ResolveNameEventArgs.cs
- AsymmetricKeyExchangeFormatter.cs
- UriTemplateTable.cs
- AttributeCollection.cs
- SoapHeaderAttribute.cs
- PageAsyncTask.cs
- KeyInfo.cs
- SQLInt32Storage.cs
- CollectionsUtil.cs
- DbCommandTree.cs
- DecodeHelper.cs
- TypeSystem.cs
- SwitchElementsCollection.cs
- AttributeParameterInfo.cs
- Filter.cs
- ToolStripDropDownClosingEventArgs.cs
- ValidationHelper.cs
- ToolStripStatusLabel.cs
- VectorValueSerializer.cs
- IteratorDescriptor.cs
- ServiceDescriptionImporter.cs
- _MultipleConnectAsync.cs
- ParseHttpDate.cs
- BatchParser.cs
- DesignerSerializationOptionsAttribute.cs
- sqlstateclientmanager.cs
- SerializationStore.cs
- DirectoryInfo.cs
- PTUtility.cs
- HtmlForm.cs
- ConfigXmlText.cs
- BitmapScalingModeValidation.cs
- TypeSystem.cs
- FontInfo.cs
- HebrewCalendar.cs
- MeasureItemEvent.cs
- DesignerDataSourceView.cs
- BuildProviderCollection.cs
- ValueSerializer.cs
- Oci.cs
- Floater.cs
- ReadOnlyAttribute.cs
- ScriptingJsonSerializationSection.cs
- ToggleButton.cs
- DbProviderSpecificTypePropertyAttribute.cs