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
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ListItemsPage.cs
- XmlWriterDelegator.cs
- ContextMenuService.cs
- InputLangChangeRequestEvent.cs
- XmlHierarchyData.cs
- KernelTypeValidation.cs
- DataObjectMethodAttribute.cs
- OperationAbortedException.cs
- Expressions.cs
- ProcessHostFactoryHelper.cs
- ToolStripDropDownItem.cs
- AlignmentYValidation.cs
- RequestTimeoutManager.cs
- ParallelQuery.cs
- MemberHolder.cs
- RegistryPermission.cs
- WinEventWrap.cs
- PhysicalFontFamily.cs
- MultipleViewProviderWrapper.cs
- InputProcessorProfiles.cs
- HttpPostProtocolImporter.cs
- MemberInfoSerializationHolder.cs
- GuidTagList.cs
- MD5CryptoServiceProvider.cs
- ZoomPercentageConverter.cs
- DataPagerFieldItem.cs
- ScrollViewer.cs
- ColorKeyFrameCollection.cs
- ExecutionScope.cs
- CornerRadiusConverter.cs
- ServiceOperation.cs
- InkCanvasSelection.cs
- EntitySetBaseCollection.cs
- xmlsaver.cs
- SamlAttribute.cs
- ToolboxComponentsCreatingEventArgs.cs
- NavigatorOutput.cs
- ActiveXSite.cs
- EventProvider.cs
- SoapAttributeOverrides.cs
- BindingExpressionBase.cs
- GlyphingCache.cs
- Light.cs
- CSharpCodeProvider.cs
- SourceElementsCollection.cs
- VBCodeProvider.cs
- XmlSerializerNamespaces.cs
- Viewport2DVisual3D.cs
- TextBox.cs
- QilLiteral.cs
- NativeMethods.cs
- CertificateManager.cs
- PrivilegeNotHeldException.cs
- AppDomain.cs
- DataGridTemplateColumn.cs
- BackEase.cs
- Renderer.cs
- ListControlConvertEventArgs.cs
- TypeSystemHelpers.cs
- XmlnsCache.cs
- ConfigurationStrings.cs
- MailAddress.cs
- TypeGeneratedEventArgs.cs
- UpdateInfo.cs
- SettingsPropertyValueCollection.cs
- CodeBinaryOperatorExpression.cs
- ChangeTracker.cs
- XmlTextEncoder.cs
- XPathNavigatorKeyComparer.cs
- ListViewGroup.cs
- ConfigurationSectionGroup.cs
- WeakHashtable.cs
- WebServiceFault.cs
- SystemUnicastIPAddressInformation.cs
- ColumnWidthChangedEvent.cs
- WorkflowDesignerColors.cs
- File.cs
- DBAsyncResult.cs
- ProfilePropertyNameValidator.cs
- XmlSchemaInclude.cs
- ListSourceHelper.cs
- DesigntimeLicenseContext.cs
- X509CertificateChain.cs
- Imaging.cs
- AsmxEndpointPickerExtension.cs
- FontWeights.cs
- DataSourceSelectArguments.cs
- BrowserDefinition.cs
- MergeLocalizationDirectives.cs
- ItemList.cs
- PrivilegedConfigurationManager.cs
- TextEditorDragDrop.cs
- AuthenticateEventArgs.cs
- KerberosSecurityTokenAuthenticator.cs
- TreeViewAutomationPeer.cs
- DbModificationCommandTree.cs
- RegisteredExpandoAttribute.cs
- AdPostCacheSubstitution.cs
- EntityContainerRelationshipSet.cs