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
- ListViewItem.cs
- EdmToObjectNamespaceMap.cs
- SecurityDescriptor.cs
- Imaging.cs
- XmlDataSourceView.cs
- panel.cs
- _AutoWebProxyScriptWrapper.cs
- PeerInputChannel.cs
- Helpers.cs
- Keywords.cs
- ConfigXmlElement.cs
- SiteMap.cs
- ToolStripCollectionEditor.cs
- SimpleBitVector32.cs
- Model3D.cs
- XmlChoiceIdentifierAttribute.cs
- AttachmentService.cs
- HitTestFilterBehavior.cs
- ConnectionInterfaceCollection.cs
- WindowsButton.cs
- GroupItemAutomationPeer.cs
- FileIOPermission.cs
- XmlIncludeAttribute.cs
- OrderPreservingMergeHelper.cs
- FunctionCommandText.cs
- GridViewDeleteEventArgs.cs
- HtmlHead.cs
- DataContractSerializerMessageContractImporter.cs
- RuntimeCompatibilityAttribute.cs
- Vector3DAnimationBase.cs
- MD5CryptoServiceProvider.cs
- XPathScanner.cs
- RightsDocument.cs
- StorageScalarPropertyMapping.cs
- BStrWrapper.cs
- RuntimeCompatibilityAttribute.cs
- CollectionViewSource.cs
- DataGridViewSortCompareEventArgs.cs
- DBPropSet.cs
- XmlMembersMapping.cs
- PermissionAttributes.cs
- ConfigurationValue.cs
- XmlSchemaValidator.cs
- MetadataCacheItem.cs
- SqlNodeAnnotation.cs
- cookiecontainer.cs
- MarginsConverter.cs
- AuthenticationConfig.cs
- ComboBoxAutomationPeer.cs
- PageClientProxyGenerator.cs
- TextChange.cs
- PageHandlerFactory.cs
- ApplicationHost.cs
- OverlappedAsyncResult.cs
- RawStylusSystemGestureInputReport.cs
- ModuleElement.cs
- ThumbButtonInfoCollection.cs
- TabItemAutomationPeer.cs
- CoTaskMemSafeHandle.cs
- SchemaElementLookUpTable.cs
- StylusPointPropertyInfo.cs
- ThreadAttributes.cs
- HtmlSelect.cs
- ConfigUtil.cs
- StrongNameHelpers.cs
- ModuleBuilderData.cs
- PreviewPrintController.cs
- ObjectDataSource.cs
- XamlPathDataSerializer.cs
- TextBoxBase.cs
- ListMarkerSourceInfo.cs
- OpenFileDialog.cs
- EntityClientCacheKey.cs
- ConnectionStringSettingsCollection.cs
- WaitHandle.cs
- DrawingBrush.cs
- DataSourceCache.cs
- WindowsIdentity.cs
- storepermissionattribute.cs
- DbParameterHelper.cs
- CancellationHandler.cs
- MarkupExtensionReturnTypeAttribute.cs
- InputManager.cs
- CollectionContainer.cs
- NumberFormatter.cs
- DefaultBindingPropertyAttribute.cs
- ColorConvertedBitmapExtension.cs
- ProvideValueServiceProvider.cs
- ChangeProcessor.cs
- BasicExpandProvider.cs
- BinHexDecoder.cs
- RequestQueryProcessor.cs
- Vector3DCollection.cs
- DataKeyCollection.cs
- DiffuseMaterial.cs
- TableColumnCollection.cs
- RMEnrollmentPage3.cs
- Cursor.cs
- HostProtectionException.cs
- FullTextBreakpoint.cs