Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DLinq / Dlinq / SqlClient / Common / SqlServer2KCompatibilityAnnotation.cs / 1 / 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
- ProcessThreadCollection.cs
- LoadedEvent.cs
- TreeSet.cs
- SqlSelectStatement.cs
- IODescriptionAttribute.cs
- PeerEndPoint.cs
- EllipseGeometry.cs
- ToolStripContainer.cs
- UrlMapping.cs
- UnsafeNativeMethods.cs
- Control.cs
- FigureHelper.cs
- DirectionalAction.cs
- PageSetupDialog.cs
- DayRenderEvent.cs
- MatrixAnimationBase.cs
- BitmapEffectDrawingContextWalker.cs
- InstancePersistenceException.cs
- ThreadLocal.cs
- TimeEnumHelper.cs
- XmlSchemas.cs
- DesignerHierarchicalDataSourceView.cs
- DeferredSelectedIndexReference.cs
- SoapAttributeAttribute.cs
- SQLDouble.cs
- HtmlControl.cs
- SystemColorTracker.cs
- CircleHotSpot.cs
- WrappedReader.cs
- ParserHooks.cs
- InputScopeConverter.cs
- PartialTrustVisibleAssembliesSection.cs
- WpfWebRequestHelper.cs
- Point.cs
- RequiredArgumentAttribute.cs
- MessageDispatch.cs
- GenerateScriptTypeAttribute.cs
- RsaSecurityToken.cs
- DocumentViewer.cs
- DataGridCaption.cs
- PersonalizationStateInfoCollection.cs
- Win32SafeHandles.cs
- XmlNamespaceDeclarationsAttribute.cs
- Assembly.cs
- MailDefinition.cs
- TcpAppDomainProtocolHandler.cs
- AssemblyBuilder.cs
- FieldMetadata.cs
- ScaleTransform.cs
- CollectionViewGroupInternal.cs
- CreateUserWizardStep.cs
- UserPreferenceChangingEventArgs.cs
- ApplicationManager.cs
- ImageListDesigner.cs
- FileCodeGroup.cs
- ApplicationBuildProvider.cs
- PagesSection.cs
- PagePropertiesChangingEventArgs.cs
- SpeechUI.cs
- ColorPalette.cs
- ExcludePathInfo.cs
- X509CertificateChain.cs
- SqlConnectionFactory.cs
- ColumnReorderedEventArgs.cs
- WebRequestModuleElementCollection.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- CookieProtection.cs
- Config.cs
- ExceptionRoutedEventArgs.cs
- BorderSidesEditor.cs
- RectValueSerializer.cs
- CodeRegionDirective.cs
- Axis.cs
- RawAppCommandInputReport.cs
- DataGridSortCommandEventArgs.cs
- ThreadSafeList.cs
- ScrollableControl.cs
- StyleTypedPropertyAttribute.cs
- ElementAction.cs
- CacheChildrenQuery.cs
- AudioFileOut.cs
- CodeTryCatchFinallyStatement.cs
- DataRow.cs
- GrammarBuilderRuleRef.cs
- ToolboxCategory.cs
- GreenMethods.cs
- FtpRequestCacheValidator.cs
- PassportIdentity.cs
- DocumentEventArgs.cs
- EventWaitHandle.cs
- ObjectKeyFrameCollection.cs
- EntityUtil.cs
- Application.cs
- Path.cs
- RequestCachePolicyConverter.cs
- Scalars.cs
- Camera.cs
- DiscoveryInnerClientManaged11.cs
- CodeAttachEventStatement.cs
- DataColumnMappingCollection.cs