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
- MenuItemCollection.cs
- ResolveResponseInfo.cs
- SplineKeyFrames.cs
- TextServicesCompartmentContext.cs
- Memoizer.cs
- Selector.cs
- ImpersonationContext.cs
- MappingModelBuildProvider.cs
- LocalizableResourceBuilder.cs
- DrawingGroup.cs
- RandomNumberGenerator.cs
- AssociationEndMember.cs
- Soap.cs
- TransformConverter.cs
- SocketPermission.cs
- XPathParser.cs
- AdapterUtil.cs
- BuilderPropertyEntry.cs
- DataGridItemCollection.cs
- XmlSchemaComplexContentExtension.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ValueTypeFixupInfo.cs
- XsltInput.cs
- SmiEventSink_Default.cs
- MessagingDescriptionAttribute.cs
- BooleanAnimationUsingKeyFrames.cs
- MessageProtectionOrder.cs
- SingleAnimationUsingKeyFrames.cs
- BroadcastEventHelper.cs
- WmlTextBoxAdapter.cs
- NamespaceQuery.cs
- TranslateTransform.cs
- MessageQueuePermissionEntry.cs
- PriorityBindingExpression.cs
- ArgumentOutOfRangeException.cs
- COSERVERINFO.cs
- Stroke.cs
- shaperfactoryquerycachekey.cs
- CompModHelpers.cs
- TraceData.cs
- RefType.cs
- DefaultAsyncDataDispatcher.cs
- basecomparevalidator.cs
- StringComparer.cs
- Statements.cs
- TdsParserStateObject.cs
- XPathQilFactory.cs
- HealthMonitoringSection.cs
- DbParameterCollectionHelper.cs
- MouseBinding.cs
- ShapingEngine.cs
- IUnknownConstantAttribute.cs
- LoadedEvent.cs
- HTTPNotFoundHandler.cs
- TextEditorThreadLocalStore.cs
- RelOps.cs
- ExtensionDataObject.cs
- TypeDescriptor.cs
- WmpBitmapEncoder.cs
- WebEventCodes.cs
- ZipIOFileItemStream.cs
- AsnEncodedData.cs
- EntityDataSourceView.cs
- SectionRecord.cs
- MultiDataTrigger.cs
- ConstraintConverter.cs
- JavaScriptObjectDeserializer.cs
- FormView.cs
- AuthenticationModulesSection.cs
- PartialList.cs
- BindingCollection.cs
- RuntimeConfigurationRecord.cs
- Behavior.cs
- LoginName.cs
- XmlCharCheckingReader.cs
- MetadataCacheItem.cs
- FieldTemplateFactory.cs
- ConnectionStringEditor.cs
- DrawingVisual.cs
- SiteMapNodeItemEventArgs.cs
- SendMessageRecord.cs
- MetadataWorkspace.cs
- SessionEndingCancelEventArgs.cs
- NamedPipeTransportElement.cs
- ResourceContainer.cs
- HierarchicalDataTemplate.cs
- BookmarkEventArgs.cs
- ColumnPropertiesGroup.cs
- SafeNativeMethods.cs
- CubicEase.cs
- DecoderNLS.cs
- LicenseProviderAttribute.cs
- ConfigUtil.cs
- DataGridViewBand.cs
- Drawing.cs
- UMPAttributes.cs
- SystemBrushes.cs
- Model3DCollection.cs
- dataSvcMapFileLoader.cs
- ProxyWebPart.cs