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
- NetCodeGroup.cs
- BoundColumn.cs
- GridItemPattern.cs
- UIElementCollection.cs
- ProcessThread.cs
- CodeLabeledStatement.cs
- sqlmetadatafactory.cs
- PrintingPermissionAttribute.cs
- AutomationElement.cs
- TimelineGroup.cs
- GlyphRunDrawing.cs
- BitmapEffectInputData.cs
- RegexFCD.cs
- ConnectionOrientedTransportManager.cs
- SystemFonts.cs
- HMACSHA256.cs
- EventProviderBase.cs
- EntryPointNotFoundException.cs
- SecurityPermission.cs
- RoleManagerSection.cs
- Win32NamedPipes.cs
- DataTableReaderListener.cs
- CodeArgumentReferenceExpression.cs
- DSACryptoServiceProvider.cs
- WsdlBuildProvider.cs
- LinqDataSourceSelectEventArgs.cs
- PerformanceCounterPermission.cs
- KnownColorTable.cs
- httpstaticobjectscollection.cs
- compensatingcollection.cs
- MemoryPressure.cs
- TrackingServices.cs
- Expander.cs
- UserControlParser.cs
- XmlSchemaSimpleContent.cs
- DbDataRecord.cs
- BamlRecords.cs
- ListParaClient.cs
- FontWeight.cs
- CqlQuery.cs
- MobileRedirect.cs
- CollectionViewGroupInternal.cs
- PrintPreviewGraphics.cs
- DesigntimeLicenseContextSerializer.cs
- XmlNamespaceMapping.cs
- BaseParser.cs
- TreeSet.cs
- NamedPermissionSet.cs
- UpDownEvent.cs
- ApplicationServicesHostFactory.cs
- Trace.cs
- RegistryPermission.cs
- FileDataSourceCache.cs
- EmissiveMaterial.cs
- bindurihelper.cs
- TiffBitmapDecoder.cs
- SurrogateSelector.cs
- EventLogEntry.cs
- Utilities.cs
- TimelineGroup.cs
- DesignerTransaction.cs
- ApplicationServicesHostFactory.cs
- LogicalChannel.cs
- BitmapEffectDrawing.cs
- XamlClipboardData.cs
- RequestQueryParser.cs
- TemplateKey.cs
- HostingPreferredMapPath.cs
- ServiceOperationListItem.cs
- LeaseManager.cs
- XmlMessageFormatter.cs
- ObjectDataSourceEventArgs.cs
- GeneratedView.cs
- ExeConfigurationFileMap.cs
- CodeMethodInvokeExpression.cs
- EnumerableRowCollection.cs
- TextBoxView.cs
- BreakRecordTable.cs
- PropertyDescriptorComparer.cs
- GridViewDeletedEventArgs.cs
- ButtonBase.cs
- ConcurrentDictionary.cs
- UIElementHelper.cs
- XmlJsonWriter.cs
- ICspAsymmetricAlgorithm.cs
- Mapping.cs
- AttributeUsageAttribute.cs
- ButtonAutomationPeer.cs
- XmlSchemaInferenceException.cs
- FileDetails.cs
- NonSerializedAttribute.cs
- UpDownEvent.cs
- DynamicValidator.cs
- ResourceManager.cs
- DetailsViewDeletedEventArgs.cs
- DataPagerFieldItem.cs
- WebPartEventArgs.cs
- ProcessHostFactoryHelper.cs
- AttributeParameterInfo.cs
- OdbcParameter.cs