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
- CodeExpressionCollection.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- propertyentry.cs
- HttpResponseHeader.cs
- ClockGroup.cs
- PartialTrustVisibleAssembliesSection.cs
- ButtonColumn.cs
- WebPageTraceListener.cs
- QilXmlWriter.cs
- EncodingDataItem.cs
- RSAPKCS1KeyExchangeFormatter.cs
- Matrix.cs
- DynamicDocumentPaginator.cs
- MDIClient.cs
- ProfileSection.cs
- AssemblyInfo.cs
- Query.cs
- Grant.cs
- ExtendedPropertiesHandler.cs
- RuleInfoComparer.cs
- ValueSerializer.cs
- Matrix.cs
- TextAdaptor.cs
- ToolStripOverflowButton.cs
- InputBindingCollection.cs
- CombinedGeometry.cs
- MeasureData.cs
- SqlAggregateChecker.cs
- ReadWriteSpinLock.cs
- ToolBar.cs
- CatalogZoneBase.cs
- HttpSocketManager.cs
- ApplicationCommands.cs
- HtmlValidationSummaryAdapter.cs
- BamlRecordWriter.cs
- DrawingContext.cs
- WindowsAuthenticationEventArgs.cs
- MultiView.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- TypeName.cs
- AttachedPropertiesService.cs
- GroupBox.cs
- DataContractAttribute.cs
- XmlEnumAttribute.cs
- TextAnchor.cs
- TreeWalker.cs
- DrawingContext.cs
- CancelAsyncOperationRequest.cs
- RowToParametersTransformer.cs
- EdmRelationshipRoleAttribute.cs
- SqlCharStream.cs
- ParameterSubsegment.cs
- NestedContainer.cs
- QueryCacheEntry.cs
- ChameleonKey.cs
- DateTime.cs
- AssemblyCollection.cs
- XomlCompilerResults.cs
- WeakHashtable.cs
- RequiredFieldValidator.cs
- RegexRunner.cs
- SqlColumnizer.cs
- grammarelement.cs
- NullableConverter.cs
- MemberInfoSerializationHolder.cs
- BidOverLoads.cs
- ParamArrayAttribute.cs
- AsymmetricSignatureDeformatter.cs
- SequentialWorkflowHeaderFooter.cs
- NullableFloatMinMaxAggregationOperator.cs
- transactioncontext.cs
- CodeStatementCollection.cs
- PageClientProxyGenerator.cs
- HandlerElementCollection.cs
- UInt16Converter.cs
- XmlTextReaderImplHelpers.cs
- CatalogPartCollection.cs
- CqlQuery.cs
- AssemblyCache.cs
- FolderLevelBuildProviderCollection.cs
- HttpUnhandledOperationInvoker.cs
- StrokeDescriptor.cs
- Peer.cs
- ControlAdapter.cs
- hresults.cs
- ResourcePart.cs
- RenderCapability.cs
- AspNetHostingPermission.cs
- SessionEndingEventArgs.cs
- ExceptionUtil.cs
- CompilerGlobalScopeAttribute.cs
- ScriptManager.cs
- TableRow.cs
- FileLogRecordHeader.cs
- NestedContainer.cs
- SelectionItemPatternIdentifiers.cs
- PointIndependentAnimationStorage.cs
- TTSEvent.cs
- ResourcePool.cs
- VariableQuery.cs