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
- SymmetricCryptoHandle.cs
- WorkflowDefinitionContext.cs
- HtmlInputHidden.cs
- PinnedBufferMemoryStream.cs
- OraclePermissionAttribute.cs
- PrintDocument.cs
- SchemaImporterExtensionElement.cs
- WebPartVerbsEventArgs.cs
- ConfigurationValidatorAttribute.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- LightweightEntityWrapper.cs
- WsatAdminException.cs
- ImageSourceValueSerializer.cs
- Stylesheet.cs
- Function.cs
- XmlNotation.cs
- filewebrequest.cs
- SiteMapNodeItem.cs
- QilGeneratorEnv.cs
- AssemblyHash.cs
- DurationConverter.cs
- ToolStripOverflowButton.cs
- ConcurrencyBehavior.cs
- RewritingValidator.cs
- ClientSideQueueItem.cs
- XmlSchemaGroupRef.cs
- OperationAbortedException.cs
- DownloadProgressEventArgs.cs
- ChannelPool.cs
- ScaleTransform3D.cs
- CSharpCodeProvider.cs
- CryptoProvider.cs
- RelationshipEndCollection.cs
- ContainerParaClient.cs
- VisualStyleRenderer.cs
- PlaceHolder.cs
- MimeMultiPart.cs
- TaskForm.cs
- StrokeCollection2.cs
- XmlSchemaInferenceException.cs
- WorkflowRuntimeServiceElement.cs
- OpenTypeLayoutCache.cs
- ConvertEvent.cs
- PageAsyncTaskManager.cs
- FocusManager.cs
- AudioException.cs
- Calendar.cs
- HtmlSelect.cs
- SendActivityEventArgs.cs
- ActionItem.cs
- TextBreakpoint.cs
- TypeDelegator.cs
- HtmlAnchor.cs
- FormView.cs
- KoreanCalendar.cs
- StorageEntityContainerMapping.cs
- DisplayMemberTemplateSelector.cs
- TextEmbeddedObject.cs
- XamlFxTrace.cs
- ActivityExecutionContext.cs
- TypographyProperties.cs
- SizeChangedEventArgs.cs
- ProfilePropertyNameValidator.cs
- NetStream.cs
- ReaderWriterLock.cs
- CodeStatement.cs
- DataGridState.cs
- SmtpTransport.cs
- CodeSubDirectory.cs
- StdValidatorsAndConverters.cs
- SafeProcessHandle.cs
- Transform.cs
- FormsAuthenticationConfiguration.cs
- HWStack.cs
- SecurityUtils.cs
- WebErrorHandler.cs
- BinaryNode.cs
- Image.cs
- XmlSchemaSimpleTypeList.cs
- CodeArrayCreateExpression.cs
- IResourceProvider.cs
- DiagnosticsConfigurationHandler.cs
- KeyPressEvent.cs
- XmlSerializerFactory.cs
- BuiltInExpr.cs
- WebControlParameterProxy.cs
- DecimalAnimationUsingKeyFrames.cs
- xmlfixedPageInfo.cs
- FixedSOMLineCollection.cs
- DragDropHelper.cs
- ResourceType.cs
- SecUtil.cs
- AutoGeneratedField.cs
- IdentityHolder.cs
- NativeRightsManagementAPIsStructures.cs
- MarkupExtensionParser.cs
- XmlSequenceWriter.cs
- EdgeModeValidation.cs
- MemberPath.cs
- AdapterDictionary.cs