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
- DecoderFallback.cs
- AlternateViewCollection.cs
- TcpAppDomainProtocolHandler.cs
- ReadOnlyDictionary.cs
- VirtualizingStackPanel.cs
- UdpReplyToBehavior.cs
- Unit.cs
- safex509handles.cs
- ObjectRef.cs
- GridViewSortEventArgs.cs
- MemberPath.cs
- PatternMatcher.cs
- MachineKeySection.cs
- AssemblyCollection.cs
- CustomWebEventKey.cs
- ThreadPool.cs
- Context.cs
- ResourceProviderFactory.cs
- CompilationUtil.cs
- DefaultShape.cs
- MasterPageCodeDomTreeGenerator.cs
- SpeechUI.cs
- DecoderNLS.cs
- SoapIgnoreAttribute.cs
- Constants.cs
- NotImplementedException.cs
- ConsoleEntryPoint.cs
- Preprocessor.cs
- QualificationDataItem.cs
- ProviderUtil.cs
- MultilineStringConverter.cs
- DataViewManagerListItemTypeDescriptor.cs
- SR.cs
- IdnElement.cs
- RegexStringValidatorAttribute.cs
- KoreanCalendar.cs
- CompositeControl.cs
- DisplayInformation.cs
- KeyToListMap.cs
- GridViewCellAutomationPeer.cs
- Publisher.cs
- CSharpCodeProvider.cs
- dsa.cs
- ThrowOnMultipleAssignment.cs
- ThousandthOfEmRealPoints.cs
- FragmentQueryProcessor.cs
- x509utils.cs
- CommandValueSerializer.cs
- SpotLight.cs
- CodeSnippetTypeMember.cs
- NominalTypeEliminator.cs
- GenericEnumerator.cs
- MailBnfHelper.cs
- WebReferencesBuildProvider.cs
- FontNameEditor.cs
- ServiceMemoryGates.cs
- Interfaces.cs
- XmlSchemaSimpleTypeRestriction.cs
- Label.cs
- ADConnectionHelper.cs
- ActiveXSite.cs
- WebServiceData.cs
- HandlerFactoryWrapper.cs
- DataGridViewElement.cs
- ValidationVisibilityAttribute.cs
- RegexCode.cs
- remotingproxy.cs
- SchemaImporter.cs
- PolyLineSegmentFigureLogic.cs
- ZipIOExtraFieldPaddingElement.cs
- DataGridViewColumnConverter.cs
- WebPageTraceListener.cs
- OracleParameterCollection.cs
- WebPartEditorApplyVerb.cs
- OleDbErrorCollection.cs
- RectangleHotSpot.cs
- VirtualDirectoryMapping.cs
- WorkflowOperationFault.cs
- ReadOnlyDictionary.cs
- NamedPipeChannelFactory.cs
- EncoderNLS.cs
- SingleAnimation.cs
- Positioning.cs
- InternalResources.cs
- GridViewRow.cs
- EntryPointNotFoundException.cs
- WebResourceAttribute.cs
- SqlDataSourceEnumerator.cs
- SoapAttributeAttribute.cs
- SocketManager.cs
- SqlExpander.cs
- TextElement.cs
- TextTreeTextBlock.cs
- ColorContextHelper.cs
- InfoCardSymmetricCrypto.cs
- ToolStripManager.cs
- CancelEventArgs.cs
- EntityCollection.cs
- ParseChildrenAsPropertiesAttribute.cs
- PathSegmentCollection.cs