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
- DefaultDialogButtons.cs
- COM2PropertyBuilderUITypeEditor.cs
- CodeIdentifiers.cs
- OdbcCommandBuilder.cs
- PasswordTextNavigator.cs
- ActiveDocumentEvent.cs
- X509ChainPolicy.cs
- SelectionPattern.cs
- NavigatingCancelEventArgs.cs
- SystemFonts.cs
- ReadOnlyActivityGlyph.cs
- FloaterBaseParagraph.cs
- IgnoreFileBuildProvider.cs
- MailDefinition.cs
- IndexerNameAttribute.cs
- Process.cs
- XmlSchemaSimpleTypeRestriction.cs
- ClientUrlResolverWrapper.cs
- Application.cs
- HtmlEncodedRawTextWriter.cs
- ACE.cs
- BamlTreeUpdater.cs
- ListViewUpdatedEventArgs.cs
- FormViewUpdatedEventArgs.cs
- SplitterPanelDesigner.cs
- InfoCardTraceRecord.cs
- ConsoleEntryPoint.cs
- MimeMultiPart.cs
- BlobPersonalizationState.cs
- ScriptingProfileServiceSection.cs
- documentsequencetextview.cs
- StyleModeStack.cs
- View.cs
- WebScriptMetadataFormatter.cs
- ResXResourceWriter.cs
- ETagAttribute.cs
- WebHostScriptMappingsInstallComponent.cs
- LassoSelectionBehavior.cs
- ListBoxItemWrapperAutomationPeer.cs
- EditBehavior.cs
- ExtensionQuery.cs
- CustomAttributeSerializer.cs
- Cursors.cs
- ApplicationHost.cs
- MenuItem.cs
- AmbientProperties.cs
- NodeFunctions.cs
- StyleHelper.cs
- WebReferencesBuildProvider.cs
- FileAccessException.cs
- Metadata.cs
- GrammarBuilderRuleRef.cs
- InstanceContext.cs
- HttpAsyncResult.cs
- ITextView.cs
- GridViewUpdateEventArgs.cs
- XmlAnyElementAttributes.cs
- SqlCacheDependencyDatabaseCollection.cs
- dataobject.cs
- LocalizableResourceBuilder.cs
- ContentTextAutomationPeer.cs
- ServiceProviders.cs
- TagMapCollection.cs
- XmlQueryCardinality.cs
- DateTimeOffsetConverter.cs
- PageCodeDomTreeGenerator.cs
- PackWebRequestFactory.cs
- SortQuery.cs
- Mapping.cs
- WeakRefEnumerator.cs
- ConsoleKeyInfo.cs
- TransactionInformation.cs
- IndicFontClient.cs
- CanonicalizationDriver.cs
- DateTimeHelper.cs
- COM2ComponentEditor.cs
- FilteredDataSetHelper.cs
- BoolLiteral.cs
- BitmapEffectCollection.cs
- ImageFormatConverter.cs
- DocobjHost.cs
- MediaPlayerState.cs
- XmlProcessingInstruction.cs
- MinimizableAttributeTypeConverter.cs
- DSASignatureFormatter.cs
- SerializationInfo.cs
- KeyGestureConverter.cs
- ComplexObject.cs
- ExplicitDiscriminatorMap.cs
- PrintPreviewDialog.cs
- EllipseGeometry.cs
- HwndSourceParameters.cs
- Axis.cs
- SecurityTokenSerializer.cs
- remotingproxy.cs
- DataSourceExpression.cs
- XmlSchemaAny.cs
- HttpConfigurationContext.cs
- ObjectDataSourceDisposingEventArgs.cs
- DescendantBaseQuery.cs