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
- SequenceDesigner.xaml.cs
- XmlSchemaSearchPattern.cs
- ParentUndoUnit.cs
- PointAnimationBase.cs
- AdRotator.cs
- XmlElementList.cs
- ActivityTypeCodeDomSerializer.cs
- CompareInfo.cs
- SplayTreeNode.cs
- SplitterEvent.cs
- TrackingDataItem.cs
- SqlBulkCopyColumnMapping.cs
- MethodCallConverter.cs
- ListViewTableCell.cs
- XmlSerializerVersionAttribute.cs
- AnnotationComponentManager.cs
- FrugalList.cs
- ProfileParameter.cs
- DataObjectMethodAttribute.cs
- _ListenerAsyncResult.cs
- TypeElementCollection.cs
- SqlDataSourceView.cs
- ThreadInterruptedException.cs
- LabelEditEvent.cs
- StringSorter.cs
- DataGridViewEditingControlShowingEventArgs.cs
- LookupNode.cs
- SqlAliasesReferenced.cs
- SqlDataSourceCommandEventArgs.cs
- EntityCommand.cs
- listitem.cs
- Models.cs
- RegexCaptureCollection.cs
- ObservableCollectionDefaultValueFactory.cs
- ProtocolViolationException.cs
- CacheOutputQuery.cs
- KeyValueConfigurationElement.cs
- IISUnsafeMethods.cs
- SettingsSavedEventArgs.cs
- ExtendedPropertyInfo.cs
- ObjectMemberMapping.cs
- wgx_commands.cs
- AspNetSynchronizationContext.cs
- SafeMemoryMappedViewHandle.cs
- BindingNavigator.cs
- CommonGetThemePartSize.cs
- UpdatableWrapper.cs
- WinInet.cs
- NullableConverter.cs
- HandoffBehavior.cs
- ProfileManager.cs
- DaylightTime.cs
- PhysicalAddress.cs
- VerticalAlignConverter.cs
- CalendarButton.cs
- arabicshape.cs
- TrackingProfile.cs
- MenuBindingsEditorForm.cs
- MouseEventArgs.cs
- WSDualHttpBindingCollectionElement.cs
- SchemaElementDecl.cs
- BitmapCodecInfoInternal.cs
- VerifyHashRequest.cs
- XPathExpr.cs
- XmlAtomicValue.cs
- XAMLParseException.cs
- BitArray.cs
- DataGridViewHeaderCell.cs
- StaticExtensionConverter.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- OleDbRowUpdatingEvent.cs
- HiddenField.cs
- ExpressionLexer.cs
- ConfigXmlWhitespace.cs
- PostBackTrigger.cs
- GroupItem.cs
- TemplateManager.cs
- WebBrowserDocumentCompletedEventHandler.cs
- RecipientInfo.cs
- Compiler.cs
- Mapping.cs
- ProcessHostServerConfig.cs
- ExpressionBindingCollection.cs
- SHA1Managed.cs
- BinaryParser.cs
- DefaultMemberAttribute.cs
- ExpressionNode.cs
- TextEditorLists.cs
- MDIControlStrip.cs
- DataGridViewCellValidatingEventArgs.cs
- Base64Encoder.cs
- ReadWriteSpinLock.cs
- PageTheme.cs
- StringArrayConverter.cs
- NotificationContext.cs
- SystemWebCachingSectionGroup.cs
- LayoutInformation.cs
- NetWebProxyFinder.cs
- TableLayoutStyleCollection.cs
- WorkflowMarkupSerializer.cs