Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / Microsoft / SqlServer / Server / SqlTriggerContext.cs / 1305376 / 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; public 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RoleServiceManager.cs
- Int16AnimationUsingKeyFrames.cs
- HwndHost.cs
- CommandLineParser.cs
- WebPartHelpVerb.cs
- DiscoveryClientChannelFactory.cs
- Operators.cs
- TableNameAttribute.cs
- DecimalKeyFrameCollection.cs
- InfiniteTimeSpanConverter.cs
- PageStatePersister.cs
- EventProviderWriter.cs
- OrderingInfo.cs
- RijndaelManaged.cs
- AnonymousIdentificationModule.cs
- TextBoxAutomationPeer.cs
- PropertyInfoSet.cs
- FormDocumentDesigner.cs
- TypedTableBaseExtensions.cs
- ProxyElement.cs
- LocatorPartList.cs
- BamlLocalizationDictionary.cs
- MeasureItemEvent.cs
- ButtonRenderer.cs
- FrameworkTextComposition.cs
- SystemIPv4InterfaceProperties.cs
- NativeMethods.cs
- ProcessManager.cs
- OleDbRowUpdatingEvent.cs
- Base64Decoder.cs
- DataGridItemEventArgs.cs
- HandlerWithFactory.cs
- CodeDirectoryCompiler.cs
- DeflateEmulationStream.cs
- ImageMapEventArgs.cs
- PerspectiveCamera.cs
- OverrideMode.cs
- TypeGeneratedEventArgs.cs
- CodeNamespace.cs
- ReturnEventArgs.cs
- GlyphTypeface.cs
- WebPart.cs
- TableLayoutSettingsTypeConverter.cs
- KeyNotFoundException.cs
- PointCollection.cs
- EntitySetBaseCollection.cs
- CallContext.cs
- XPathCompileException.cs
- ClientSettingsStore.cs
- TdsParserStaticMethods.cs
- FileIOPermission.cs
- ReversePositionQuery.cs
- PropertyValueUIItem.cs
- EventLogConfiguration.cs
- ToolBarDesigner.cs
- ApplicationSettingsBase.cs
- XmlChildEnumerator.cs
- PartitionResolver.cs
- DataGrid.cs
- WorkflowCommandExtensionItem.cs
- ProfileSettingsCollection.cs
- EntityDescriptor.cs
- TraceData.cs
- CharacterShapingProperties.cs
- CapiNative.cs
- ImmutablePropertyDescriptorGridEntry.cs
- DesignTimeDataBinding.cs
- keycontainerpermission.cs
- CopyNodeSetAction.cs
- SizeAnimationBase.cs
- TreeNodeStyleCollection.cs
- CodeRemoveEventStatement.cs
- WebPartMovingEventArgs.cs
- IndexOutOfRangeException.cs
- StyleCollectionEditor.cs
- ProcessHostMapPath.cs
- SourceElementsCollection.cs
- DispatchChannelSink.cs
- ContainerParaClient.cs
- TraceUtility.cs
- DataGridViewCellPaintingEventArgs.cs
- SpecularMaterial.cs
- GridEntry.cs
- CountdownEvent.cs
- EntityDataSourceViewSchema.cs
- XslCompiledTransform.cs
- ClientSession.cs
- GridView.cs
- ValidationRule.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- DisplayMemberTemplateSelector.cs
- RoleGroup.cs
- BookmarkList.cs
- Quaternion.cs
- SafeSecurityHelper.cs
- ZipPackage.cs
- ProtocolsConfigurationEntry.cs
- SessionStateItemCollection.cs
- TextHidden.cs
- ListItemDetailViewAttribute.cs