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
- SqlParameter.cs
- TableStyle.cs
- ConfigurationValue.cs
- BinaryCommonClasses.cs
- HeaderCollection.cs
- NaturalLanguageHyphenator.cs
- DataServiceSaveChangesEventArgs.cs
- ModifyActivitiesPropertyDescriptor.cs
- ParseHttpDate.cs
- DbConnectionInternal.cs
- Color.cs
- CodeBlockBuilder.cs
- VisualSerializer.cs
- DbRetry.cs
- TreeViewHitTestInfo.cs
- MultiBinding.cs
- ServiceHttpModule.cs
- CounterSample.cs
- ProviderConnectionPointCollection.cs
- ExpressionHelper.cs
- ExpandCollapsePattern.cs
- SQLInt64.cs
- XmlSecureResolver.cs
- XmlValidatingReader.cs
- XPathPatternParser.cs
- OletxDependentTransaction.cs
- VirtualizedContainerService.cs
- DefaultAuthorizationContext.cs
- StyleHelper.cs
- AxHost.cs
- ListViewSortEventArgs.cs
- ObjectCloneHelper.cs
- DocumentPaginator.cs
- Literal.cs
- Atom10FormatterFactory.cs
- TextEndOfParagraph.cs
- Int64AnimationUsingKeyFrames.cs
- Point.cs
- KnownIds.cs
- XamlSerializerUtil.cs
- ParameterCollection.cs
- KeyGestureConverter.cs
- PermissionSetTriple.cs
- LinearKeyFrames.cs
- XmlSchemas.cs
- UnaryNode.cs
- GradientStopCollection.cs
- StaticSiteMapProvider.cs
- PageResolution.cs
- XmlDsigSep2000.cs
- Semaphore.cs
- NamespaceInfo.cs
- ControlBindingsConverter.cs
- sqlstateclientmanager.cs
- ControlBindingsCollection.cs
- TemplateControl.cs
- errorpatternmatcher.cs
- StrokeCollectionConverter.cs
- ListItemCollection.cs
- SymbolEqualComparer.cs
- SchemaTypeEmitter.cs
- OpCopier.cs
- XPathDocumentIterator.cs
- FragmentQueryKB.cs
- TypeUnloadedException.cs
- CommonRemoteMemoryBlock.cs
- ApplyTemplatesAction.cs
- FilteredSchemaElementLookUpTable.cs
- PerformanceCounter.cs
- DataGridViewCellPaintingEventArgs.cs
- QilName.cs
- WebEventCodes.cs
- ExpressionTextBox.xaml.cs
- HttpModulesSection.cs
- ResXResourceSet.cs
- ConfigurationLoaderException.cs
- KnownTypesHelper.cs
- KoreanCalendar.cs
- FocusWithinProperty.cs
- PathNode.cs
- ContainerUtilities.cs
- ServiceOperationListItem.cs
- Propagator.JoinPropagator.cs
- Events.cs
- DataBoundControlHelper.cs
- EntityPropertyMappingAttribute.cs
- CompressStream.cs
- TextStore.cs
- PagesChangedEventArgs.cs
- TokenBasedSet.cs
- FileDialogCustomPlacesCollection.cs
- SamlAuthorizationDecisionStatement.cs
- PageSetupDialog.cs
- WebPartTracker.cs
- RsaSecurityToken.cs
- BaseTemplateParser.cs
- XmlAttributeAttribute.cs
- ExpandedWrapper.cs
- ExecutedRoutedEventArgs.cs
- ChangeBlockUndoRecord.cs