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
- RoutingBehavior.cs
- MediaContextNotificationWindow.cs
- AutomationPropertyInfo.cs
- APCustomTypeDescriptor.cs
- KeyFrames.cs
- SafeLibraryHandle.cs
- DbConnectionPoolCounters.cs
- EventToken.cs
- Icon.cs
- wmiprovider.cs
- NavigationProgressEventArgs.cs
- DateTimeConstantAttribute.cs
- DataGridComponentEditor.cs
- TaskResultSetter.cs
- DataGridHeaderBorder.cs
- WindowsSecurityToken.cs
- SliderAutomationPeer.cs
- Byte.cs
- RenderCapability.cs
- ListenerConfig.cs
- Property.cs
- ModuleConfigurationInfo.cs
- WorkflowDesignerMessageFilter.cs
- ConfigurationStrings.cs
- CodeObjectCreateExpression.cs
- HandlerBase.cs
- XComponentModel.cs
- KeyToListMap.cs
- QueryAsyncResult.cs
- webclient.cs
- WebEncodingValidatorAttribute.cs
- EventDescriptorCollection.cs
- FunctionImportElement.cs
- AuthenticationServiceManager.cs
- Blend.cs
- MetadataSerializer.cs
- MsmqInputChannelListener.cs
- CodeDefaultValueExpression.cs
- ValueExpressions.cs
- SqlInternalConnectionTds.cs
- InstanceOwnerQueryResult.cs
- CopyOfAction.cs
- TextRangeEditTables.cs
- SmiEventSink_Default.cs
- XmlDocumentSchema.cs
- ConstrainedGroup.cs
- WebPartManagerInternals.cs
- XmlEncodedRawTextWriter.cs
- DataControlReferenceCollection.cs
- RelationshipConverter.cs
- SettingsPropertyValueCollection.cs
- X509ClientCertificateCredentialsElement.cs
- DataServiceProcessingPipelineEventArgs.cs
- CalendarSelectionChangedEventArgs.cs
- TypeBuilderInstantiation.cs
- InvalidPrinterException.cs
- PropertyGridCommands.cs
- ReferenceEqualityComparer.cs
- GroupPartitionExpr.cs
- TraceData.cs
- PerspectiveCamera.cs
- Label.cs
- UpDownEvent.cs
- TableChangeProcessor.cs
- HttpAsyncResult.cs
- QueryContinueDragEventArgs.cs
- SingleTagSectionHandler.cs
- PriorityItem.cs
- DynamicVirtualDiscoSearcher.cs
- StateBag.cs
- DurableTimerExtension.cs
- Directory.cs
- CompilationSection.cs
- CodeDOMProvider.cs
- SimpleHandlerBuildProvider.cs
- JavaScriptObjectDeserializer.cs
- BindingList.cs
- HttpCacheParams.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- DelegateInArgument.cs
- Tablet.cs
- OdbcConnection.cs
- BackgroundFormatInfo.cs
- GlyphCache.cs
- ConfigXmlAttribute.cs
- ChildrenQuery.cs
- Ipv6Element.cs
- MergeEnumerator.cs
- CacheSection.cs
- WebPartManager.cs
- BCLDebug.cs
- Item.cs
- SplashScreenNativeMethods.cs
- DataGridViewDataErrorEventArgs.cs
- MatrixUtil.cs
- InstalledFontCollection.cs
- ProxyFragment.cs
- InstallerTypeAttribute.cs
- Range.cs
- RtType.cs