Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DLinq / Dlinq / SqlClient / Common / SqlServer2KCompatibilityAnnotation.cs / 1305376 / SqlServer2KCompatibilityAnnotation.cs
using System; using System.Collections.Generic; using System.Text; namespace System.Data.Linq.SqlClient { ////// Annotation which indicates that the given node will cause a compatibility problem /// for the indicated set of providers. /// internal class SqlServerCompatibilityAnnotation : SqlNodeAnnotation { SqlProvider.ProviderMode[] providers; ////// Constructor /// /// The compatibility message. /// The set of providers this compatibility issue applies to. internal SqlServerCompatibilityAnnotation(string message, params SqlProvider.ProviderMode[] providers) : base(message) { this.providers = providers; } ////// Returns true if this annotation applies to the specified provider. /// internal bool AppliesTo(SqlProvider.ProviderMode provider) { foreach (SqlProvider.ProviderMode p in providers) { if (p == provider) { return true; } } return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Text; namespace System.Data.Linq.SqlClient { ////// Annotation which indicates that the given node will cause a compatibility problem /// for the indicated set of providers. /// internal class SqlServerCompatibilityAnnotation : SqlNodeAnnotation { SqlProvider.ProviderMode[] providers; ////// Constructor /// /// The compatibility message. /// The set of providers this compatibility issue applies to. internal SqlServerCompatibilityAnnotation(string message, params SqlProvider.ProviderMode[] providers) : base(message) { this.providers = providers; } ////// Returns true if this annotation applies to the specified provider. /// internal bool AppliesTo(SqlProvider.ProviderMode provider) { foreach (SqlProvider.ProviderMode p in providers) { if (p == provider) { return true; } } return false; } } } // 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
- FormsAuthentication.cs
- Properties.cs
- AssertUtility.cs
- SimpleBitVector32.cs
- StartUpEventArgs.cs
- Effect.cs
- EnterpriseServicesHelper.cs
- webeventbuffer.cs
- Validator.cs
- FileDialogCustomPlace.cs
- OrCondition.cs
- RemotingException.cs
- XmlCharCheckingWriter.cs
- UseAttributeSetsAction.cs
- MsmqChannelFactoryBase.cs
- XPathAncestorIterator.cs
- RegexRunnerFactory.cs
- NetDataContractSerializer.cs
- CharacterMetricsDictionary.cs
- TraceContext.cs
- ToolBarOverflowPanel.cs
- PopupRoot.cs
- ColorBlend.cs
- Part.cs
- MD5CryptoServiceProvider.cs
- SID.cs
- StreamFormatter.cs
- ContainerParagraph.cs
- PointValueSerializer.cs
- SqlTypeConverter.cs
- EdmFunctionAttribute.cs
- PrintPageEvent.cs
- ColorContextHelper.cs
- SqlDataSourceSummaryPanel.cs
- EditorPartDesigner.cs
- SessionStateItemCollection.cs
- MergeFailedEvent.cs
- EncoderExceptionFallback.cs
- WebBrowserNavigatedEventHandler.cs
- initElementDictionary.cs
- DataGridCell.cs
- PropertyTab.cs
- PublisherMembershipCondition.cs
- WindowsScrollBar.cs
- ProxyHwnd.cs
- NativeMethods.cs
- SystemFonts.cs
- WorkflowQueuingService.cs
- RowToFieldTransformer.cs
- CodeArrayIndexerExpression.cs
- CheckBoxRenderer.cs
- AjaxFrameworkAssemblyAttribute.cs
- ViewGenResults.cs
- Expressions.cs
- Module.cs
- XPathAncestorIterator.cs
- LoginCancelEventArgs.cs
- Literal.cs
- IISUnsafeMethods.cs
- PresentationUIStyleResources.cs
- Roles.cs
- SchemaElement.cs
- GridLength.cs
- NegotiateStream.cs
- ExpressionNode.cs
- HScrollBar.cs
- KnownTypesHelper.cs
- TextProperties.cs
- FlowNode.cs
- OpenFileDialog.cs
- CompositeFontParser.cs
- WorkflowLayouts.cs
- TakeQueryOptionExpression.cs
- UICuesEvent.cs
- NativeMethods.cs
- PropertyPath.cs
- PagedDataSource.cs
- SetterTriggerConditionValueConverter.cs
- DocumentGrid.cs
- RealProxy.cs
- Button.cs
- FormClosedEvent.cs
- MenuItemAutomationPeer.cs
- SqlDataSource.cs
- CounterSampleCalculator.cs
- SafeNativeMethods.cs
- PageParserFilter.cs
- _Rfc2616CacheValidators.cs
- Condition.cs
- UniqueIdentifierService.cs
- ContractInferenceHelper.cs
- xml.cs
- FigureParaClient.cs
- XmlDictionary.cs
- EmptyStringExpandableObjectConverter.cs
- StructuralObject.cs
- DataGridTableCollection.cs
- DelayedRegex.cs
- SoapExtensionTypeElement.cs
- Triplet.cs