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
- ProtocolInformationWriter.cs
- CqlIdentifiers.cs
- GridViewUpdateEventArgs.cs
- OrderedDictionaryStateHelper.cs
- SecurityPolicySection.cs
- PathFigure.cs
- CleanUpVirtualizedItemEventArgs.cs
- ClockController.cs
- CodeTypeParameterCollection.cs
- XmlException.cs
- TreeNode.cs
- XmlAttributeCache.cs
- RuntimeUtils.cs
- PageFunction.cs
- TypeTypeConverter.cs
- DefaultBinder.cs
- DateBoldEvent.cs
- CrossAppDomainChannel.cs
- QilLiteral.cs
- MemoryStream.cs
- mongolianshape.cs
- OuterGlowBitmapEffect.cs
- DataObjectMethodAttribute.cs
- ThaiBuddhistCalendar.cs
- StrokeFIndices.cs
- LowerCaseStringConverter.cs
- PiiTraceSource.cs
- LassoHelper.cs
- XmlLoader.cs
- EncoderReplacementFallback.cs
- WindowsIPAddress.cs
- XmlSchemaRedefine.cs
- XmlSchemaImporter.cs
- ActivityExecutionFilter.cs
- AttachInfo.cs
- DropAnimation.xaml.cs
- BinaryObjectReader.cs
- mactripleDES.cs
- ConfigXmlComment.cs
- AnnotationHelper.cs
- NativeMethods.cs
- ServiceRouteHandler.cs
- HMACSHA384.cs
- MailBnfHelper.cs
- mongolianshape.cs
- MessageAction.cs
- AssemblyInfo.cs
- NegatedConstant.cs
- StyleReferenceConverter.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- UrlParameterWriter.cs
- ApplicationSettingsBase.cs
- DashStyle.cs
- Listbox.cs
- CompressionTransform.cs
- Tag.cs
- SafeHandles.cs
- pingexception.cs
- HwndMouseInputProvider.cs
- InternalEnumValidatorAttribute.cs
- EntitySetRetriever.cs
- TextParaLineResult.cs
- ValidatorCompatibilityHelper.cs
- BinaryUtilClasses.cs
- ItemCheckEvent.cs
- WindowHideOrCloseTracker.cs
- ColorTransform.cs
- EntityDataSourceViewSchema.cs
- dsa.cs
- Compiler.cs
- ContentPosition.cs
- WebPartZone.cs
- ECDiffieHellmanCng.cs
- ConfigurationManagerHelper.cs
- RenderingBiasValidation.cs
- HtmlUtf8RawTextWriter.cs
- Int32AnimationUsingKeyFrames.cs
- UnsafeNetInfoNativeMethods.cs
- ActivityBindForm.cs
- PartialTrustVisibleAssemblyCollection.cs
- ExtensibleSyndicationObject.cs
- IDispatchConstantAttribute.cs
- DependentList.cs
- BaseUriHelper.cs
- EditingMode.cs
- HandlerFactoryWrapper.cs
- SqlMetaData.cs
- BorderGapMaskConverter.cs
- LayoutEditorPart.cs
- AssemblyCollection.cs
- WindowsGraphics2.cs
- OrderByQueryOptionExpression.cs
- ReachPageContentCollectionSerializerAsync.cs
- EventData.cs
- Setter.cs
- Expressions.cs
- AuthenticationModulesSection.cs
- DiscoveryMessageSequence.cs
- MaskDesignerDialog.cs
- DataGridViewAccessibleObject.cs