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
- HeaderPanel.cs
- sqlmetadatafactory.cs
- BitmapImage.cs
- Clock.cs
- DataContext.cs
- ClientRuntimeConfig.cs
- HtmlInputPassword.cs
- FusionWrap.cs
- XslTransform.cs
- CompositeControl.cs
- ListenerElementsCollection.cs
- DesignSurface.cs
- KeySpline.cs
- CodeTypeParameter.cs
- EditorZoneBase.cs
- DefaultHttpHandler.cs
- FormatterConverter.cs
- ExecutedRoutedEventArgs.cs
- PerfService.cs
- RC2.cs
- PersonalizableTypeEntry.cs
- SiteMapNodeItemEventArgs.cs
- NotifyIcon.cs
- JpegBitmapDecoder.cs
- ComponentResourceManager.cs
- WindowPattern.cs
- InputLangChangeEvent.cs
- TemplateControlParser.cs
- RefExpr.cs
- FileDetails.cs
- AlphabetConverter.cs
- GuidTagList.cs
- Misc.cs
- XPathNodeHelper.cs
- TargetConverter.cs
- ViewgenGatekeeper.cs
- safesecurityhelperavalon.cs
- LockRenewalTask.cs
- TextInfo.cs
- SplineQuaternionKeyFrame.cs
- PasswordTextNavigator.cs
- Substitution.cs
- ScrollableControlDesigner.cs
- GradientBrush.cs
- SystemIPAddressInformation.cs
- TableColumn.cs
- EpmContentSerializerBase.cs
- AsymmetricCryptoHandle.cs
- FileDialogCustomPlace.cs
- DataBindingHandlerAttribute.cs
- ViewStateException.cs
- SecurityTokenAttachmentMode.cs
- SelectedDatesCollection.cs
- ClusterRegistryConfigurationProvider.cs
- DecoderExceptionFallback.cs
- ConfigurationConverterBase.cs
- MachineKeyConverter.cs
- VirtualPathUtility.cs
- ISAPIRuntime.cs
- SmiMetaData.cs
- AsyncResult.cs
- Int32EqualityComparer.cs
- SqlDataSourceView.cs
- DtcInterfaces.cs
- ConfigurationSchemaErrors.cs
- MatrixTransform.cs
- XmlKeywords.cs
- DictionaryMarkupSerializer.cs
- KeyInfo.cs
- SqlGenerator.cs
- OAVariantLib.cs
- IncrementalReadDecoders.cs
- EventPropertyMap.cs
- ADMembershipProvider.cs
- EncoderNLS.cs
- StringKeyFrameCollection.cs
- OutputScopeManager.cs
- Marshal.cs
- BufferedStream.cs
- IRCollection.cs
- UserPersonalizationStateInfo.cs
- SystemSounds.cs
- KeyEvent.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- hebrewshape.cs
- Int64Animation.cs
- TreeNodeCollectionEditorDialog.cs
- ActiveDesignSurfaceEvent.cs
- QilTernary.cs
- TableStyle.cs
- AdRotator.cs
- WeakReferenceList.cs
- MimeTypeMapper.cs
- CollectionView.cs
- ZipIOCentralDirectoryBlock.cs
- SqlCommandBuilder.cs
- LowerCaseStringConverter.cs
- SoapException.cs
- DataView.cs
- SqlNodeTypeOperators.cs