Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SqlDataSourceCommandEventArgs.cs
- FormatVersion.cs
- SplitterCancelEvent.cs
- SpotLight.cs
- XmlSchemaRedefine.cs
- TreeNodeStyle.cs
- SByte.cs
- MsmqInputSessionChannel.cs
- ResourceAssociationSet.cs
- PassportAuthentication.cs
- Light.cs
- TextBoxLine.cs
- PropertyPushdownHelper.cs
- ContainerControl.cs
- TableRowCollection.cs
- MimeObjectFactory.cs
- PeerContact.cs
- SupportingTokenBindingElement.cs
- ConfigViewGenerator.cs
- DialogResultConverter.cs
- SelectionChangedEventArgs.cs
- ZipIOBlockManager.cs
- BitmapEffect.cs
- Point.cs
- SoapFormatter.cs
- WebCategoryAttribute.cs
- BinaryMessageEncoder.cs
- ToolStripDropDown.cs
- BaseParser.cs
- WindowsPen.cs
- StylusPointPropertyInfoDefaults.cs
- TableLayoutSettings.cs
- TemplateControlBuildProvider.cs
- StreamGeometry.cs
- DefaultValueAttribute.cs
- GeometryConverter.cs
- querybuilder.cs
- KeyFrames.cs
- ComplusTypeValidator.cs
- XmlSchemaSubstitutionGroup.cs
- GridItemPatternIdentifiers.cs
- ClientTarget.cs
- XsdValidatingReader.cs
- TimeEnumHelper.cs
- Models.cs
- WrapPanel.cs
- StorageRoot.cs
- OuterGlowBitmapEffect.cs
- CompilationLock.cs
- ZipIOCentralDirectoryFileHeader.cs
- PrimitiveXmlSerializers.cs
- ContextMarshalException.cs
- TextUtf8RawTextWriter.cs
- DrawListViewSubItemEventArgs.cs
- RenderContext.cs
- ProfileSection.cs
- CalloutQueueItem.cs
- UserControlBuildProvider.cs
- ImageBrush.cs
- CurrentChangingEventArgs.cs
- XsdBuildProvider.cs
- StrongNameKeyPair.cs
- FragmentNavigationEventArgs.cs
- CustomErrorsSectionWrapper.cs
- CorePropertiesFilter.cs
- SafePointer.cs
- PrivateFontCollection.cs
- MemoryRecordBuffer.cs
- LockedActivityGlyph.cs
- ListItemParagraph.cs
- StateDesigner.Layouts.cs
- SmtpLoginAuthenticationModule.cs
- ContextBase.cs
- BulletDecorator.cs
- DataBoundLiteralControl.cs
- NavigationFailedEventArgs.cs
- PageBreakRecord.cs
- FixedTextView.cs
- XmlSerializerFormatAttribute.cs
- ConnectionsZone.cs
- GraphicsPath.cs
- ImageButton.cs
- HttpResponseWrapper.cs
- BitmapEffect.cs
- RootBuilder.cs
- HandlerWithFactory.cs
- CollectionViewGroup.cs
- PageBuildProvider.cs
- SoapServerMessage.cs
- SrgsGrammarCompiler.cs
- MouseBinding.cs
- SessionStateItemCollection.cs
- NeutralResourcesLanguageAttribute.cs
- EncoderParameter.cs
- ButtonColumn.cs
- DataControlField.cs
- TemplatedMailWebEventProvider.cs
- ButtonField.cs
- wmiprovider.cs
- WpfKnownMemberInvoker.cs