Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Data / Microsoft / SqlServer / Server / SqlTriggerContext.cs / 1 / SqlTriggerContext.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //daltodov //----------------------------------------------------------------------------- namespace Microsoft.SqlServer.Server { using System.Data.Common; using System.Data.SqlClient; using System.Data.SqlTypes; using System.Diagnostics; #if WINFSInternalOnly internal #else public #endif sealed class SqlTriggerContext { TriggerAction _triggerAction; bool[] _columnsUpdated; SqlXml _eventInstanceData; internal SqlTriggerContext(TriggerAction triggerAction, bool[] columnsUpdated, SqlXml eventInstanceData) { _triggerAction = triggerAction; _columnsUpdated = columnsUpdated; _eventInstanceData = eventInstanceData; } public int ColumnCount { get { int result = 0; if (null != _columnsUpdated) { result = _columnsUpdated.Length; } return result; } } public SqlXml EventData { get { return _eventInstanceData; } } public TriggerAction TriggerAction { get { return _triggerAction; } } public bool IsUpdatedColumn(int columnOrdinal) { if (null != _columnsUpdated) { return _columnsUpdated[columnOrdinal]; // will throw IndexOutOfRangeException if it's out of range... } throw ADP.IndexOutOfRange(columnOrdinal); // if there aren't any columns, that means IndexOutOfRange too... } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MetadataFile.cs
- DateTimeFormatInfoScanner.cs
- EndOfStreamException.cs
- XmlEntity.cs
- DesignTimeParseData.cs
- EventHandlerList.cs
- FigureHelper.cs
- BitConverter.cs
- DataGridViewHitTestInfo.cs
- ReflectionUtil.cs
- TableLayoutSettingsTypeConverter.cs
- QueryOperatorEnumerator.cs
- SQLString.cs
- RedirectionProxy.cs
- IconBitmapDecoder.cs
- WithStatement.cs
- TreeIterators.cs
- ProcessHostConfigUtils.cs
- FixedHighlight.cs
- BindingCompleteEventArgs.cs
- AccessibilityHelperForXpWin2k3.cs
- SerializationFieldInfo.cs
- Empty.cs
- BasePattern.cs
- ProfessionalColors.cs
- DatatypeImplementation.cs
- WmlValidationSummaryAdapter.cs
- CheckBoxPopupAdapter.cs
- RequestTimeoutManager.cs
- WindowsStreamSecurityBindingElement.cs
- COMException.cs
- DoubleAnimationBase.cs
- WindowsSolidBrush.cs
- StringResourceManager.cs
- ExpressionReplacer.cs
- CatchDesigner.xaml.cs
- CompilerState.cs
- InternalPermissions.cs
- CalendarDayButton.cs
- TextSpan.cs
- ContextDataSource.cs
- EventLogger.cs
- SqlMethodAttribute.cs
- XPathException.cs
- ThicknessKeyFrameCollection.cs
- OletxResourceManager.cs
- HMACSHA1.cs
- ToolStripHighContrastRenderer.cs
- MemberHolder.cs
- Win32SafeHandles.cs
- ResizeGrip.cs
- _NegotiateClient.cs
- ListViewDataItem.cs
- ControlUtil.cs
- LicenseContext.cs
- FormView.cs
- SqlDataSourceStatusEventArgs.cs
- CreateCardRequest.cs
- SHA512Managed.cs
- CultureSpecificStringDictionary.cs
- Debugger.cs
- ConnectionsZone.cs
- Int32.cs
- TemplateGroupCollection.cs
- PointLightBase.cs
- StringHelper.cs
- WebBrowserSiteBase.cs
- PerfCounterSection.cs
- OutputCacheSettingsSection.cs
- HttpListener.cs
- Symbol.cs
- FormatConvertedBitmap.cs
- SessionStateItemCollection.cs
- ExpandoClass.cs
- SoapSchemaImporter.cs
- StringSorter.cs
- WindowsAuthenticationEventArgs.cs
- AutomationFocusChangedEventArgs.cs
- Property.cs
- InfoCardConstants.cs
- DocumentOrderComparer.cs
- autovalidator.cs
- CachingHintValidation.cs
- Matrix.cs
- HtmlWindowCollection.cs
- XPathScanner.cs
- HtmlSelect.cs
- CodeComment.cs
- TrustManagerPromptUI.cs
- ObjectSpanRewriter.cs
- MemoryFailPoint.cs
- DataPagerFieldCollection.cs
- DataObjectSettingDataEventArgs.cs
- Journal.cs
- DataBoundControlHelper.cs
- EdmFunctions.cs
- _Connection.cs
- EmbeddedMailObject.cs
- MetafileHeaderEmf.cs
- XamlPathDataSerializer.cs